pub struct ArrayVTableBuilder { /* private fields */ }Expand description
Builds a ArrayVTable
Implementations§
Source§impl ArrayVTableBuilder
impl ArrayVTableBuilder
Sourcepub const fn new() -> ArrayVTableBuilder
pub const fn new() -> ArrayVTableBuilder
Creates a new ArrayVTableBuilder with all fields set to None.
Sourcepub const fn get_item_ptr(
self,
f: unsafe fn(_: PtrConst<'_>, _: usize) -> PtrConst<'_>,
) -> ArrayVTableBuilder
pub const fn get_item_ptr( self, f: unsafe fn(_: PtrConst<'_>, _: usize) -> PtrConst<'_>, ) -> ArrayVTableBuilder
Sets the get_item_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