pub struct BoundedSequence<T, const N: u32>(/* private fields */);Expand description
sequence<T, N>: Vec of at most N elements. A longer one is
BAD_PARAM when sent and MARSHAL when received.
Trait Implementations§
Source§impl<T: IdlType, const N: u32> IdlType for BoundedSequence<T, N>
impl<T: IdlType, const N: u32> IdlType for BoundedSequence<T, 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 = [<T as IdlType>::Rust]
type Borrowed = [<T as IdlType>::Rust]
What is written:
str for strings, a slice for sequences, else
Rust itself.Auto Trait Implementations§
impl<T, const N: u32> Forget for BoundedSequence<T, N>
impl<T, const N: u32> Freeze for BoundedSequence<T, N>where
PhantomData<T>: Freeze,
impl<T, const N: u32> RefUnwindSafe for BoundedSequence<T, N>where
PhantomData<T>: RefUnwindSafe,
impl<T, const N: u32> Send for BoundedSequence<T, N>where
PhantomData<T>: Send,
impl<T, const N: u32> Sync for BoundedSequence<T, N>where
PhantomData<T>: Sync,
impl<T, const N: u32> Unpin for BoundedSequence<T, N>where
PhantomData<T>: Unpin,
impl<T, const N: u32> UnsafeUnpin for BoundedSequence<T, N>where
PhantomData<T>: UnsafeUnpin,
impl<T, const N: u32> UnwindSafe for BoundedSequence<T, N>where
PhantomData<T>: UnwindSafe,
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