Struct twounordered::TwoUnorderedVecs [−][src]
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 replace_inner(&mut self, mut a: Vec<T>) -> (Vec<T>, usize)
[src]
Uses the specified vec as the underlying vec. The original vec is returned. The first vec is set to the size of the specified vec. The second vec will be empty.
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.
Unsafety
The destructors of T won't get called, and X may not be properly initialized.
Trait Implementations
impl<T: Debug> Debug for TwoUnorderedVecs<T>
[src]
impl<T> Default 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>,