pub struct Various<T> { /* private fields */ }Implementations§
Source§impl<T> Various<T>
impl<T> Various<T>
pub fn new() -> Self
pub fn from(item: T) -> Self
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn iter<'a>(&'a self) -> VariousIter<'a, T> ⓘ
pub fn iter_mut<'a>(&'a mut self) -> VariousIterMut<'a, T> ⓘ
pub fn first(&self) -> Option<&T>
pub fn last(&self) -> Option<&T>
pub fn last_mut(&mut self) -> Option<&mut T>
pub fn take(&mut self) -> Self
Trait Implementations§
Source§impl<'a, T> IntoIterator for &'a Various<T>
impl<'a, T> IntoIterator for &'a Various<T>
Auto Trait Implementations§
impl<T> Freeze for Various<T>where
T: Freeze,
impl<T> RefUnwindSafe for Various<T>where
T: RefUnwindSafe,
impl<T> Send for Various<T>where
T: Send,
impl<T> Sync for Various<T>
impl<T> Unpin for Various<T>where
T: Unpin,
impl<T> UnsafeUnpin for Various<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Various<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