pub struct SliceVTableBuilder { /* private fields */ }
Expand description
Builds a SliceVTable
Implementations§
Source§impl SliceVTableBuilder
impl SliceVTableBuilder
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new SliceVTableBuilder
with all fields set to None
.
Sourcepub const fn len(self, f: SliceLenFn) -> Self
pub const fn len(self, f: SliceLenFn) -> Self
Sets the len
field
Sourcepub const fn as_ptr(self, f: SliceAsPtrFn) -> Self
pub const fn as_ptr(self, f: SliceAsPtrFn) -> Self
Sets the as_ptr field
Sourcepub const fn as_mut_ptr(self, f: SliceAsMutPtrFn) -> Self
pub const fn as_mut_ptr(self, f: SliceAsMutPtrFn) -> Self
Sets the as_mut_ptr field
Sourcepub const fn build(self) -> SliceVTable
pub const fn build(self) -> SliceVTable
Builds the SliceVTable
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 SliceVTableBuilder
impl RefUnwindSafe for SliceVTableBuilder
impl Send for SliceVTableBuilder
impl Sync for SliceVTableBuilder
impl Unpin for SliceVTableBuilder
impl UnwindSafe for SliceVTableBuilder
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