pub struct Array<T, const N: usize>(/* private fields */);Expand description
T x[N]: [T; N]. A multidimensional array is an array of arrays.
Trait Implementations§
Source§impl<T: IdlType, const N: usize> IdlType for Array<T, N>
impl<T: IdlType, const N: usize> IdlType for Array<T, N>
Source§const MIN_SIZE: usize
const MIN_SIZE: usize
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; N]
type Borrowed = [<T as IdlType>::Rust; N]
What is written:
str for strings, a slice for sequences, else
Rust itself.Auto Trait Implementations§
impl<T, const N: usize> Freeze for Array<T, N>where
PhantomData<T>: Freeze,
impl<T, const N: usize> RefUnwindSafe for Array<T, N>where
PhantomData<T>: RefUnwindSafe,
impl<T, const N: usize> Send for Array<T, N>where
PhantomData<T>: Send,
impl<T, const N: usize> Sync for Array<T, N>where
PhantomData<T>: Sync,
impl<T, const N: usize> Unpin for Array<T, N>where
PhantomData<T>: Unpin,
impl<T, const N: usize> UnsafeUnpin for Array<T, N>where
PhantomData<T>: UnsafeUnpin,
impl<T, const N: usize> UnwindSafe for Array<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