Skip to main content

ExactSizeFallibleLender

Trait ExactSizeFallibleLender 

Source
pub trait ExactSizeFallibleLender: FallibleLender {
    // Provided methods
    fn len(&self) -> usize { ... }
    fn is_empty(&self) -> bool { ... }
}
Expand description

Provided Methods§

Source

fn len(&self) -> usize

Returns the exact remaining length of the lender.

See ExactSizeLender::len.

Source

fn is_empty(&self) -> bool

Returns true if the lender has no more elements.

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.

Implementations on Foreign Types§

Source§

impl<I: ExactSizeFallibleLender> ExactSizeFallibleLender for &mut I

Source§

fn len(&self) -> usize

Source§

fn is_empty(&self) -> bool

Implementors§

Source§

impl<'a, L, E> ExactSizeFallibleLender for Once<'a, L, E>
where E: 'a, L: ?Sized + CovariantFallibleLending,

Source§

impl<'this, L> ExactSizeFallibleLender for Peekable<'this, L>

Source§

impl<A, B> ExactSizeFallibleLender for Zip<A, B>

Source§

impl<E, I> ExactSizeFallibleLender for Convert<E, I>
where I: ExactSizeLender + LenderResult<E>,

Source§

impl<E, L, F> ExactSizeFallibleLender for MapErr<E, L, F>
where F: FnMut(L::Error) -> E, L: ExactSizeFallibleLender,

Source§

impl<L> ExactSizeFallibleLender for Enumerate<L>

Source§

impl<L> ExactSizeFallibleLender for Fuse<L>

Source§

impl<L> ExactSizeFallibleLender for IntoFallible<L>
where L: ExactSizeLender,

Source§

impl<L> ExactSizeFallibleLender for Rev<L>

Source§

impl<L> ExactSizeFallibleLender for Skip<L>

Source§

impl<L> ExactSizeFallibleLender for StepBy<L>

Source§

impl<L> ExactSizeFallibleLender for Take<L>

Source§

impl<L, E> ExactSizeFallibleLender for Empty<L, E>
where L: ?Sized + for<'all> FallibleLending<'all>,

Source§

impl<L, E> ExactSizeFallibleLender for OnceErr<L, E>
where L: ?Sized + CovariantFallibleLending,

Source§

impl<L, E> ExactSizeFallibleLender for RepeatErr<L, E>
where L: ?Sized + CovariantFallibleLending, E: Clone,

Source§

impl<L, E, F> ExactSizeFallibleLender for RepeatWithErr<L, F>
where L: ?Sized + CovariantFallibleLending, F: FnMut() -> E,

Source§

impl<L: ExactSizeFallibleLender, F> ExactSizeFallibleLender for Inspect<L, F>
where F: FnMut(&FallibleLend<'_, L>) -> Result<(), L::Error>,

Source§

impl<L: ExactSizeFallibleLender, F> ExactSizeFallibleLender for Map<L, F>
where F: for<'all> FnMutHKARes<'all, FallibleLend<'all, L>, L::Error>,

Source§

impl<L: ExactSizeFallibleLender, F> ExactSizeFallibleLender for Mutate<L, F>
where F: FnMut(&mut FallibleLend<'_, L>) -> Result<(), L::Error>,

Source§

impl<St, E, F> ExactSizeFallibleLender for OnceWith<St, E, F>
where F: for<'all> FnOnceHKA<'all, &'all mut St>,

Source§

impl<St, L, E, F> ExactSizeFallibleLender for OnceWithErr<St, L, F>
where L: ?Sized + CovariantFallibleLending, F: FnOnce(&mut St) -> E,