pub struct BoundedString<const N: u32>;Expand description
string<N>: String of at most N characters. A longer one is
BAD_PARAM when sent and MARSHAL when received.
Trait Implementations§
Source§impl<const N: u32> Debug for BoundedString<N>
impl<const N: u32> Debug for BoundedString<N>
Source§impl<const N: u32> IdlType for BoundedString<N>
impl<const N: u32> IdlType for BoundedString<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 BoundedString<N>
impl<const N: u32> RefUnwindSafe for BoundedString<N>
impl<const N: u32> Send for BoundedString<N>
impl<const N: u32> Sync for BoundedString<N>
impl<const N: u32> Unpin for BoundedString<N>
impl<const N: u32> UnsafeUnpin for BoundedString<N>
impl<const N: u32> UnwindSafe for BoundedString<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