pub struct IterVTableBuilder<T: IterItem> { /* private fields */ }
Expand description
Builds an IterVTable
Implementations§
Source§impl<T: IterItem> IterVTableBuilder<T>
impl<T: IterItem> IterVTableBuilder<T>
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new IterVTableBuilder
with all fields set to None
.
Sourcepub const fn init_with_value(self, f: IterInitWithValueFn) -> Self
pub const fn init_with_value(self, f: IterInitWithValueFn) -> Self
Sets the init_with_value
function
Sourcepub const fn next(self, f: IterNextFn<T>) -> Self
pub const fn next(self, f: IterNextFn<T>) -> Self
Sets the next
function
Sourcepub const fn next_back(self, f: IterNextBackFn<T>) -> Self
pub const fn next_back(self, f: IterNextBackFn<T>) -> Self
Sets the next_back
function
Sourcepub const fn dealloc(self, f: IterDeallocFn) -> Self
pub const fn dealloc(self, f: IterDeallocFn) -> Self
Sets the dealloc
function
Sourcepub const fn build(self) -> IterVTable<T>
pub const fn build(self) -> IterVTable<T>
Builds the IterVTable
from the current state of the builder.
§Panics
Panic if any of the required fields (init_with_value, next, dealloc) are None
.
Auto Trait Implementations§
impl<T> Freeze for IterVTableBuilder<T>
impl<T> RefUnwindSafe for IterVTableBuilder<T>
impl<T> Send for IterVTableBuilder<T>
impl<T> Sync for IterVTableBuilder<T>
impl<T> Unpin for IterVTableBuilder<T>
impl<T> UnwindSafe for IterVTableBuilder<T>
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