pub struct Collection<T> { /* private fields */ }
Implementations§
Source§impl<T> Collection<T>
impl<T> Collection<T>
pub fn new() -> Self
Sourcepub fn into_inner(self) -> Vec<T>
pub fn into_inner(self) -> Vec<T>
Get the items off the collection.
Sourcepub fn filter<F>(&self, f: F) -> Self
pub fn filter<F>(&self, f: F) -> Self
Filter the collection by the closure. False(y) items will be removec
Sourcepub fn map<U, F>(&self, f: F) -> Collection<U>
pub fn map<U, F>(&self, f: F) -> Collection<U>
Map over the collection.
Trait Implementations§
Source§impl<T: Clone> Clone for Collection<T>
impl<T: Clone> Clone for Collection<T>
Source§fn clone(&self) -> Collection<T>
fn clone(&self) -> Collection<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for Collection<T>
impl<T: Debug> Debug for Collection<T>
Source§impl<T: Default> Default for Collection<T>
impl<T: Default> Default for Collection<T>
Source§fn default() -> Collection<T>
fn default() -> Collection<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for Collection<T>
impl<T> RefUnwindSafe for Collection<T>where
T: RefUnwindSafe,
impl<T> Send for Collection<T>where
T: Send,
impl<T> Sync for Collection<T>where
T: Sync,
impl<T> Unpin for Collection<T>where
T: Unpin,
impl<T> UnwindSafe for Collection<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more