[−][src]Struct twounordered::TwoUnorderedVecs
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]
T: Send,
impl<T> Sync for TwoUnorderedVecs<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for TwoUnorderedVecs<T> where
T: Unpin,
[src]
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,