[][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 first(&mut self) -> FirstVec<'_, T>[src]

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

pub fn clear_and_as_vec(&mut self, func: impl FnOnce(&mut Vec<T>))[src]

Clear the vec, and expose the underlying vec to the user to use After the closure is executed, the vec is cleared again in case the user modified it.

pub fn clear(&mut self)[src]

pub fn into_vec(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]

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.