Size

Trait Size 

Source
pub trait Size:
    Seal
    + Send
    + Sync
    + Clone
    + Copy {
    // Required method
    fn exact_len(self) -> Option<usize>;
}
Expand description

Marker trait determining whether the iterator is exact-sized or not.

Required Methods§

Source

fn exact_len(self) -> Option<usize>

Returns the total number of elements that the recursive iterator will generate if completely consumed.

Returns None if this is not known ahead of time.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§