Trait EntriesExt

Source
pub trait EntriesExt {
    type T;
    type Entries<'a, T: 'a>;

    // Required method
    fn entries<'a, R, F, Ret>(&'a mut self, range: R, f: F) -> Ret
       where R: RangeBounds<usize>,
             F: FnOnce(&mut Self::Entries<'a, Self::T>) -> Ret;
}

Required Associated Types§

Source

type T

The element type of the underlying container.

Source

type Entries<'a, T: 'a>

The entries type

Required Methods§

Source

fn entries<'a, R, F, Ret>(&'a mut self, range: R, f: F) -> Ret
where R: RangeBounds<usize>, F: FnOnce(&mut Self::Entries<'a, Self::T>) -> Ret,

Inspect the entries of a container within a specific range.

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<T> EntriesExt for Vec<T>

Source§

type T = T

Source§

type Entries<'a, V: 'a> = Entries<'a, V>

Source§

fn entries<'a, R, F, Ret>(&'a mut self, range: R, f: F) -> Ret
where R: RangeBounds<usize>, F: FnOnce(&mut Self::Entries<'a, Self::T>) -> Ret,

Implementors§