Struct collected::LastN [−][src]
pub struct LastN<U, A, const N: usize> where
U: FromIterator<A>, { /* fields omitted */ }
Expand description
A wrapper around collection U
that retains only last N
values.
Implementations
Collects last N
values into the collection U
.
Trait Implementations
Extends a collection with the contents of an iterator. Read more
🔬 This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
🔬 This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Creates a value from an iterator. Read more
Auto Trait Implementations
impl<U, A, const N: usize> RefUnwindSafe for LastN<U, A, N> where
A: RefUnwindSafe,
U: RefUnwindSafe,
impl<U, A, const N: usize> UnwindSafe for LastN<U, A, N> where
A: UnwindSafe,
U: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more