pub struct BoundedWString<const N: u32>;Expand description
wstring<N>: String of at most N characters.
Trait Implementations§
Source§impl<const N: u32> Debug for BoundedWString<N>
impl<const N: u32> Debug for BoundedWString<N>
Source§impl<const N: u32> IdlType for BoundedWString<N>
impl<const N: u32> IdlType for BoundedWString<N>
Source§const MIN_SIZE: usize = 4
const MIN_SIZE: usize = 4
The smallest size of a value on the wire, to check the lengths of
sequences before reading them.
Source§type Borrowed = str
type Borrowed = str
What is written:
str for strings, a slice for sequences, else
Rust itself.Auto Trait Implementations§
impl<const N: u32> Freeze for BoundedWString<N>
impl<const N: u32> RefUnwindSafe for BoundedWString<N>
impl<const N: u32> Send for BoundedWString<N>
impl<const N: u32> Sync for BoundedWString<N>
impl<const N: u32> Unpin for BoundedWString<N>
impl<const N: u32> UnsafeUnpin for BoundedWString<N>
impl<const N: u32> UnwindSafe for BoundedWString<N>
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