[][src]Struct twounordered::TwoUnorderedVecs

pub struct TwoUnorderedVecs<T> { /* fields omitted */ }

Implementations

impl<T> TwoUnorderedVecs<T>[src]

pub fn with_capacity(num: usize) -> Self[src]

pub fn new() -> Self[src]

pub fn from_vec(inner: Vec<T>) -> Self[src]

The first vec will have all the elements of the specified vec. The second vec will be empty.

pub fn first(&mut self) -> FirstVec<'_, T>[src]

pub fn second(&mut self) -> SecondVec<'_, T>[src]

pub fn clear(&mut self)[src]

pub fn into_vec(self) -> Vec<T>[src]

pub fn insert_vec(&mut self, mut a: Vec<T>)[src]

Uses the specified vec as the underlying vec. The original vec is dropped. The first vec is set to the size of the specified vec. The second vec will be empty.

pub fn extract_vec(&mut self) -> Vec<T>[src]

pub fn as_vec(&self) -> &Vec<T>[src]

pub fn as_slice_mut(&mut self) -> (&mut [T], &mut [T])[src]

pub fn as_slice(&self) -> (&[T], &[T])[src]

pub unsafe fn convert<X>(mut self: Self) -> TwoUnorderedVecs<X>[src]

Cast this container into another provided X has the same size and alignment as T. Panics if they do not.

Trait Implementations

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

Auto Trait Implementations

impl<T> Send for TwoUnorderedVecs<T> where
    T: Send
[src]

impl<T> Sync for TwoUnorderedVecs<T> where
    T: Sync
[src]

impl<T> Unpin for TwoUnorderedVecs<T> where
    T: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.