pub struct Binary;
Expand description
Intended to be used as a generic argument for VarCell
to declare that this buffer is used to
hold raw binary input.
Trait Implementations§
Source§impl VarKind for Binary
impl VarKind for Binary
Source§const TERMINATING_ZEROES: usize = 0usize
const TERMINATING_ZEROES: usize = 0usize
Number of terminating zeroes required for this kind of variadic buffer.
const C_DATA_TYPE: CDataType = CDataType::Binary
Source§type Element = u8
type Element = u8
Either
u8
for binary and narrow text or u16
for wide text. Wide text could also be
represented as u8
, after all everything is bytes. This makes it difficult though to create
owned VarCell types from u16
buffers.Source§fn relational_type(length: usize) -> DataType
fn relational_type(length: usize) -> DataType
Relational type used to bind the parameter.
buffer_length
is specified in elements rather
than bytes, if the two differ.impl Copy for Binary
Auto Trait Implementations§
impl Freeze for Binary
impl RefUnwindSafe for Binary
impl Send for Binary
impl Sync for Binary
impl Unpin for Binary
impl UnwindSafe for Binary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more