Struct combu::vector::Vector [−][src]
Expand description
struct Vector is a new type pattern of Option<Vec
Tuple Fields
0: Option<Vec<T>>
Implementations
Creates a new Vetocr with inner.
Initialize this. After initialization, this inner Option<Vec
Creates a new Vector with first element.
Returns true if has some(n>0) items.
Append other(Vec
Prepend other(Vec
Returns true if this has inner vec(as Some(Vec
Returns a reference to an element has index(usize).
Removes and returns element at index. If index is out of bounds, will panic.
Removes last element of inner vec and returns it. If inner vec is empty or None, returns None.
Removes last element of inner vec. If inner vec is empty of None, will panic.
Returns the sum of inner Vectors’ len.
Returns the len fo last of inner Vectors.
Trait Implementations
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
Auto Trait Implementations
impl<T> RefUnwindSafe for Vector<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Vector<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more