pub struct Text;
Expand description
Intended to be used as a generic argument for VarCell
to declare that this buffer is used to
hold narrow (as opposed to wide UTF-16) text.
Trait Implementations§
Source§impl VarKind for Text
impl VarKind for Text
Source§const TERMINATING_ZEROES: usize = 1usize
const TERMINATING_ZEROES: usize = 1usize
Number of terminating zeroes required for this kind of variadic buffer.
const C_DATA_TYPE: CDataType = CDataType::Char
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 Text
Auto Trait Implementations§
impl Freeze for Text
impl RefUnwindSafe for Text
impl Send for Text
impl Sync for Text
impl Unpin for Text
impl UnwindSafe for Text
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