#[non_exhaustive]#[repr(C)]pub struct IterVTable<T: IterItem> {
pub init_with_value: Option<IterInitWithValueFn>,
pub next: IterNextFn<T>,
pub next_back: Option<IterNextBackFn<T>>,
pub size_hint: Option<IterSizeHintFn>,
pub dealloc: IterDeallocFn,
}
Expand description
VTable for an iterator
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.init_with_value: Option<IterInitWithValueFn>
§next: IterNextFn<T>
cf. IterNextFn
next_back: Option<IterNextBackFn<T>>
cf. IterNextBackFn
size_hint: Option<IterSizeHintFn>
cf. IterSizeHintFn
dealloc: IterDeallocFn
cf. IterDeallocFn
Implementations§
Source§impl<T: IterItem> IterVTable<T>
impl<T: IterItem> IterVTable<T>
Sourcepub const fn builder() -> IterVTableBuilder<T>
pub const fn builder() -> IterVTableBuilder<T>
Returns a builder for IterVTable
Trait Implementations§
Source§impl<T: Clone + IterItem> Clone for IterVTable<T>
impl<T: Clone + IterItem> Clone for IterVTable<T>
Source§fn clone(&self) -> IterVTable<T>
fn clone(&self) -> IterVTable<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl<T: Copy + IterItem> Copy for IterVTable<T>
impl<T: Eq + IterItem> Eq for IterVTable<T>
impl<T: IterItem> StructuralPartialEq for IterVTable<T>
Auto Trait Implementations§
impl<T> Freeze for IterVTable<T>
impl<T> RefUnwindSafe for IterVTable<T>
impl<T> Send for IterVTable<T>
impl<T> Sync for IterVTable<T>
impl<T> Unpin for IterVTable<T>
impl<T> UnwindSafe for IterVTable<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