pub struct ArrayVTableBuilder { /* private fields */ }
Expand description
Builds a ArrayVTable
Implementations§
Source§impl ArrayVTableBuilder
impl ArrayVTableBuilder
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new ArrayVTableBuilder
with all fields set to None
.
Sourcepub const fn as_ptr(self, f: ArrayAsPtrFn) -> Self
pub const fn as_ptr(self, f: ArrayAsPtrFn) -> Self
Sets the as_ptr field
Sourcepub const fn as_mut_ptr(self, f: ArrayAsMutPtrFn) -> Self
pub const fn as_mut_ptr(self, f: ArrayAsMutPtrFn) -> Self
Sets the as_mut_ptr field
Sourcepub const fn build(self) -> ArrayVTable
pub const fn build(self) -> ArrayVTable
Builds the ArrayVTable
from the current state of the builder.
§Panics
This method will panic if any of the required fields are None
.
Auto Trait Implementations§
impl Freeze for ArrayVTableBuilder
impl RefUnwindSafe for ArrayVTableBuilder
impl Send for ArrayVTableBuilder
impl Sync for ArrayVTableBuilder
impl Unpin for ArrayVTableBuilder
impl UnwindSafe for ArrayVTableBuilder
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