Trait std::io::SizeHint

source ·
trait SizeHint {
    // Required methods
    fn lower_bound(&self) -> usize;
    fn upper_bound(&self) -> Option<usize>;

    // Provided method
    fn size_hint(&self) -> (usize, Option<usize>) { ... }
}

Required Methods§

Provided Methods§

Implementors§

source§

impl SizeHint for &[u8]

source§

impl SizeHint for Empty

source§

impl SizeHint for Repeat

source§

impl<T> SizeHint for &mut T

source§

impl<T> SizeHint for Box<T>

source§

impl<T> SizeHint for Take<T>

source§

impl<T, U> SizeHint for Chain<T, U>

source§

impl<T: ?Sized> SizeHint for BufReader<T>

source§

impl<T: ?Sized> SizeHint for T