pub struct MapIterVTableBuilder { /* private fields */ }Expand description
Builds a MapIterVTable
Implementations§
Source§impl MapIterVTableBuilder
impl MapIterVTableBuilder
Sourcepub const fn new() -> MapIterVTableBuilder
pub const fn new() -> MapIterVTableBuilder
Creates a new MapIterVTableBuilder with all fields set to None.
Sourcepub const fn next(
self,
f: for<'iter> unsafe fn(_: PtrMut<'iter>) -> Option<(PtrConst<'iter>, PtrConst<'iter>)>,
) -> MapIterVTableBuilder
pub const fn next( self, f: for<'iter> unsafe fn(_: PtrMut<'iter>) -> Option<(PtrConst<'iter>, PtrConst<'iter>)>, ) -> MapIterVTableBuilder
Sets the next field
Sourcepub const fn dealloc(
self,
f: for<'iter> unsafe fn(_: PtrMut<'iter>),
) -> MapIterVTableBuilder
pub const fn dealloc( self, f: for<'iter> unsafe fn(_: PtrMut<'iter>), ) -> MapIterVTableBuilder
Sets the dealloc field
Sourcepub const fn build(self) -> MapIterVTable
pub const fn build(self) -> MapIterVTable
Builds the MapIterVTable 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 MapIterVTableBuilder
impl RefUnwindSafe for MapIterVTableBuilder
impl Send for MapIterVTableBuilder
impl Sync for MapIterVTableBuilder
impl Unpin for MapIterVTableBuilder
impl UnwindSafe for MapIterVTableBuilder
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