Struct alo::ALO [] [src]

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

ALO means At Least One. It cointains at least one item. If there is only one item, ALO does not heap allocate. If there is more than one items, ALO does heap allocate.

Methods

impl<T> ALO<T>
[src]

Remove item in given index.

Panics

Panics if ALO has only one item. Panics if index is out of bounds.

Trait Implementations

impl<T: Clone> Clone for ALO<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Debug for ALO<T> where
    T: Debug
[src]

Formats the value using the given formatter.

impl<T> Display for ALO<T> where
    T: Display
[src]

This prints like below "ALO ( "String", and more 9 items )

impl<A, B> PartialEq<ALO<B>> for ALO<A> where
    A: PartialEq<B>, 
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> Eq for ALO<T> where
    T: Eq
[src]

impl<T> PartialOrd for ALO<T> where
    T: PartialOrd<T>, 
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T> Ord for ALO<T> where
    T: Ord
[src]

This method returns an Ordering between self and other. Read more