#[non_exhaustive]#[repr(C)]pub struct ArrayDef<'shape> {
pub vtable: &'shape ArrayVTable,
pub t: &'shape Shape<'shape>,
pub n: usize,
}Expand description
Fields for array types
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.vtable: &'shape ArrayVTablevtable for interacting with the array
t: &'shape Shape<'shape>shape of the items in the array
n: usizeThe length of the array
Implementations§
Trait Implementations§
impl<'shape> Copy for ArrayDef<'shape>
impl<'shape> Eq for ArrayDef<'shape>
impl<'shape> StructuralPartialEq for ArrayDef<'shape>
Auto Trait Implementations§
impl<'shape> Freeze for ArrayDef<'shape>
impl<'shape> RefUnwindSafe for ArrayDef<'shape>
impl<'shape> Send for ArrayDef<'shape>
impl<'shape> Sync for ArrayDef<'shape>
impl<'shape> Unpin for ArrayDef<'shape>
impl<'shape> UnwindSafe for ArrayDef<'shape>
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