#[repr(C)]pub struct IterSizeHint {
pub lower: usize,
pub upper: usize,
pub has_upper: bool,
}Expand description
Return the lower and upper bounds of the iterator, if known.
§Safety
The iter parameter must point to aligned, initialized memory of the correct type.
Fields§
§lower: usizeLower bound on remaining items.
upper: usizeUpper bound on remaining items when has_upper is true.
has_upper: boolWhether upper contains a real upper bound.
Trait Implementations§
Source§impl Clone for IterSizeHint
impl Clone for IterSizeHint
Source§fn clone(&self) -> IterSizeHint
fn clone(&self) -> IterSizeHint
Returns a duplicate 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 moreSource§impl Debug for IterSizeHint
impl Debug for IterSizeHint
impl Copy for IterSizeHint
Auto Trait Implementations§
impl Freeze for IterSizeHint
impl RefUnwindSafe for IterSizeHint
impl Send for IterSizeHint
impl Sync for IterSizeHint
impl Unpin for IterSizeHint
impl UnsafeUnpin for IterSizeHint
impl UnwindSafe for IterSizeHint
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