Struct imap_codec::core::NonEmptyVec
source · pub struct NonEmptyVec<T>(_);Expand description
A Vec that always contains >= 1 elements.
Implementations§
source§impl<T> NonEmptyVec<T>
impl<T> NonEmptyVec<T>
pub fn verify(value: &[T]) -> Result<(), NonEmptyVecError>
pub fn new_unchecked(inner: Vec<T, Global>) -> NonEmptyVec<T>
Trait Implementations§
source§impl<T> AsRef<[T]> for NonEmptyVec<T>
impl<T> AsRef<[T]> for NonEmptyVec<T>
source§impl<T> Clone for NonEmptyVec<T>where
T: Clone,
impl<T> Clone for NonEmptyVec<T>where T: Clone,
source§fn clone(&self) -> NonEmptyVec<T>
fn clone(&self) -> NonEmptyVec<T>
Returns a copy 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 for NonEmptyVec<T>where
T: Debug,
impl<T> Debug for NonEmptyVec<T>where T: Debug,
source§impl<T> Hash for NonEmptyVec<T>where
T: Hash,
impl<T> Hash for NonEmptyVec<T>where T: Hash,
source§impl<T> PartialEq<NonEmptyVec<T>> for NonEmptyVec<T>where
T: PartialEq<T>,
impl<T> PartialEq<NonEmptyVec<T>> for NonEmptyVec<T>where T: PartialEq<T>,
source§fn eq(&self, other: &NonEmptyVec<T>) -> bool
fn eq(&self, other: &NonEmptyVec<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.