#[non_exhaustive]#[repr(C)]pub struct ArrayDef {
pub vtable: &'static ArrayVTable,
pub t: fn() -> &'static 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: &'static ArrayVTablevtable for interacting with the array
t: fn() -> &'static Shapeshape of the items in the list
n: usizeThe length of the array
Implementations§
Trait Implementations§
impl Copy for ArrayDef
impl Eq for ArrayDef
impl StructuralPartialEq for ArrayDef
Auto Trait Implementations§
impl Freeze for ArrayDef
impl RefUnwindSafe for ArrayDef
impl Send for ArrayDef
impl Sync for ArrayDef
impl Unpin for ArrayDef
impl UnwindSafe for ArrayDef
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