pub struct ArrayDefBuilder { /* private fields */ }Expand description
Builder for ArrayDef
Implementations§
Source§impl ArrayDefBuilder
impl ArrayDefBuilder
Sourcepub const fn new() -> ArrayDefBuilder
pub const fn new() -> ArrayDefBuilder
Creates a new ArrayDefBuilder
Sourcepub const fn vtable(self, vtable: &'static ArrayVTable) -> ArrayDefBuilder
pub const fn vtable(self, vtable: &'static ArrayVTable) -> ArrayDefBuilder
Sets the vtable for the ArrayDef
Sourcepub const fn t(self, t: fn() -> &'static Shape) -> ArrayDefBuilder
pub const fn t(self, t: fn() -> &'static Shape) -> ArrayDefBuilder
Sets the item shape for the ArrayDef
Sourcepub const fn n(self, n: usize) -> ArrayDefBuilder
pub const fn n(self, n: usize) -> ArrayDefBuilder
Sets the length for the ArrayDef (added method)
Auto Trait Implementations§
impl Freeze for ArrayDefBuilder
impl RefUnwindSafe for ArrayDefBuilder
impl Send for ArrayDefBuilder
impl Sync for ArrayDefBuilder
impl Unpin for ArrayDefBuilder
impl UnwindSafe for ArrayDefBuilder
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