Struct non_empty::NonEmpty
[−]
[src]
pub struct NonEmpty<T>(_, _);
Non-empty list data type.
Trait Implementations
impl<T: Debug> Debug for NonEmpty<T>
[src]
impl<T: PartialEq> PartialEq for NonEmpty<T>
[src]
fn eq(&self, other: &Self) -> bool
[src]
Equality comparison.
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<T: Default> Default for NonEmpty<T>
[src]
impl<T> Into<Vec<T>> for NonEmpty<T>
[src]
impl<T> TryFrom<Vec<T>> for NonEmpty<T>
[src]
type Error = EmptyVecError
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(v: Vec<T>) -> Result<NonEmpty<T>, EmptyVecError>
[src]
🔬 This is a nightly-only experimental API. (
try_from
)Turns a vec into a non-empty list.