pub struct WideText;Expand description
Intended to be used as a generic argument for VarCell to declare that this buffer is used to
hold wide UTF-16 (as opposed to narrow ASCII or UTF-8) text. Use this to annotate [u16]
buffers.
Trait Implementations§
source§impl VarKind for WideText
impl VarKind for WideText
§type Element = u16
type Element = u16
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§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::WChar
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.Auto Trait Implementations§
impl RefUnwindSafe for WideText
impl Send for WideText
impl Sync for WideText
impl Unpin for WideText
impl UnwindSafe for WideText
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