pub fn new(elem: T) -> NonEmptyVec<T> {
        NonEmptyVec {
            elem: Box::new(elem),
            rest: Vec::new(),
        }
    }
/// Creates a new collection with a single element.
Creates a new collection with a single element.
Creates a new collection with a single element .
pub fn new(elem: T) -> NonEmptyVec<T> {
        NonEmptyVec {
            elem: Box::new(elem),
            rest: Vec::new(),
        }
    }
pub fn new ( elem : T ) -> NonEmptyVec < T > { NonEmptyVec { elem : Box :: new ( elem ) , rest : Vec :: new ( ) , } }
Creates a new collection with a single element.
Creates a new collection with a single element .
elem
T
elem
T