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
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§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§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 WideText
Auto Trait Implementations§
impl Freeze for WideText
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)