pub struct ListVTableBuilder { /* private fields */ }
Expand description
Builds a ListVTable
Implementations§
Source§impl ListVTableBuilder
impl ListVTableBuilder
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new ListVTableBuilder
with all fields set to None
.
Sourcepub const fn init_in_place_with_capacity(
self,
f: ListInitInPlaceWithCapacityFn,
) -> Self
pub const fn init_in_place_with_capacity( self, f: ListInitInPlaceWithCapacityFn, ) -> Self
Sets the init_in_place_with_capacity field
Sourcepub const fn push(self, f: ListPushFn) -> Self
pub const fn push(self, f: ListPushFn) -> Self
Sets the push field
Sourcepub const fn get_mut(self, f: ListGetMutFn) -> Self
pub const fn get_mut(self, f: ListGetMutFn) -> Self
Sets the get_mut field
Sourcepub const fn as_ptr(self, f: ListAsPtrFn) -> Self
pub const fn as_ptr(self, f: ListAsPtrFn) -> Self
Sets the as_ptr field
Sourcepub const fn as_mut_ptr(self, f: ListAsMutPtrFn) -> Self
pub const fn as_mut_ptr(self, f: ListAsMutPtrFn) -> Self
Sets the as_mut_ptr field
Sourcepub const fn iter_vtable(self, vtable: IterVTable<PtrConst<'static>>) -> Self
pub const fn iter_vtable(self, vtable: IterVTable<PtrConst<'static>>) -> Self
Sets the iter_vtable field
Sourcepub const fn build(self) -> ListVTable
pub const fn build(self) -> ListVTable
Builds the ListVTable
from the current state of the builder.
§Panics
Panic if any of the required fields (len, get, as_ptr, iter_vtable) are None
.
Auto Trait Implementations§
impl Freeze for ListVTableBuilder
impl RefUnwindSafe for ListVTableBuilder
impl Send for ListVTableBuilder
impl Sync for ListVTableBuilder
impl Unpin for ListVTableBuilder
impl UnwindSafe for ListVTableBuilder
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