pub enum LengthResult {
Known(usize),
Unknown,
}Expand description
Result of asking a list for its length.
Variants§
Known(usize)
The list is finite and its length is known.
Unknown
The list is (or may be) endless; an exact length is not available.
Trait Implementations§
Source§impl Clone for LengthResult
impl Clone for LengthResult
Source§fn clone(&self) -> LengthResult
fn clone(&self) -> LengthResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LengthResult
Source§impl Debug for LengthResult
impl Debug for LengthResult
impl Eq for LengthResult
Source§impl PartialEq for LengthResult
impl PartialEq for LengthResult
Source§fn eq(&self, other: &LengthResult) -> bool
fn eq(&self, other: &LengthResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LengthResult
Auto Trait Implementations§
impl Freeze for LengthResult
impl RefUnwindSafe for LengthResult
impl Send for LengthResult
impl Sync for LengthResult
impl Unpin for LengthResult
impl UnsafeUnpin for LengthResult
impl UnwindSafe for LengthResult
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