Struct non_empty::NonEmpty [] [src]

pub struct NonEmpty<T>(_, _);

Non-empty list data type.

Trait Implementations

impl<T: Debug> Debug for NonEmpty<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: PartialEq> PartialEq for NonEmpty<T>
[src]

[src]

Equality comparison.

1.0.0
[src]

This method tests for !=.

impl<T: Default> Default for NonEmpty<T>
[src]

[src]

Default value.

impl<T> Into<Vec<T>> for NonEmpty<T>
[src]

[src]

Turns a non-empty list into a Vec.

impl<T> TryFrom<Vec<T>> for NonEmpty<T>
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

[src]

🔬 This is a nightly-only experimental API. (try_from)

Turns a vec into a non-empty list.