Struct recrypt::nonemptyvec::NonEmptyVec [−]
pub struct NonEmptyVec<T> { /* fields omitted */ }
Expand description
A simple-minded NonEmptyVec implementation
Implementations
impl<T> NonEmptyVec<T> where
T: Clone,
impl<T> NonEmptyVec<T> where
T: Clone,
pub fn new_first(first: T) -> Self
pub fn new_last(first_v: &[T], tail: NonEmptyVec<T>) -> Self
pub fn try_from(v: &[T]) -> Result<NonEmptyVec<T>, NonEmptyVecError>
pub fn concat(&self, b: &NonEmptyVec<T>) -> NonEmptyVec<T>
Trait Implementations
impl<T: Clone> Clone for NonEmptyVec<T>
impl<T: Clone> Clone for NonEmptyVec<T>
fn clone(&self) -> NonEmptyVec<T>
fn clone(&self) -> NonEmptyVec<T>
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for NonEmptyVec<T>
impl<T: Debug> Debug for NonEmptyVec<T>
impl<T> From<NonEmptyVec<T>> for Vec<T>
impl<T> From<NonEmptyVec<T>> for Vec<T>
fn from(n: NonEmptyVec<T>) -> Self
fn from(n: NonEmptyVec<T>) -> Self
Performs the conversion.
impl<T: Hash> Hash for NonEmptyVec<T>
impl<T: Hash> Hash for NonEmptyVec<T>
impl<T: Hashable + Clone> Hashable for NonEmptyVec<T>
impl<T: Hashable + Clone> Hashable for NonEmptyVec<T>
impl<T: PartialEq> PartialEq<NonEmptyVec<T>> for NonEmptyVec<T>
impl<T: PartialEq> PartialEq<NonEmptyVec<T>> for NonEmptyVec<T>
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 ==
. Read more
fn ne(&self, other: &NonEmptyVec<T>) -> bool
fn ne(&self, other: &NonEmptyVec<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for NonEmptyVec<T>
impl<T> StructuralEq for NonEmptyVec<T>
impl<T> StructuralPartialEq for NonEmptyVec<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for NonEmptyVec<T> where
T: RefUnwindSafe,
impl<T> Send for NonEmptyVec<T> where
T: Send,
impl<T> Sync for NonEmptyVec<T> where
T: Sync,
impl<T> Unpin for NonEmptyVec<T> where
T: Unpin,
impl<T> UnwindSafe for NonEmptyVec<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more