FunctionalVecDeque

Trait FunctionalVecDeque 

Source
pub trait FunctionalVecDeque {
    type Item;

Show 26 methods // Required methods fn append_new(self, other: Self) -> Self; fn clear_new(self) -> Self; fn insert_new(self, index: usize, value: Self::Item) -> Self; fn make_contiguous_new(self) -> Self; fn pop_back_new(self) -> (Option<Self::Item>, Self); fn pop_front_new(self) -> (Option<Self::Item>, Self); fn push_back_new(self, value: Self::Item) -> Self; fn push_front_new(self, value: Self::Item) -> Self; fn remove_new(self, index: usize) -> (Option<Self::Item>, Self); fn reserve_new(self, additional: usize) -> Self; fn reserve_exact_new(self, additional: usize) -> Self; fn resize_new(self, new_len: usize, value: Self::Item) -> Self where Self::Item: Clone; fn resize_with_new( self, new_len: usize, generator: impl FnMut() -> Self::Item, ) -> Self; fn retain_new<F>(self, f: F) -> Self where F: FnMut(&Self::Item) -> bool; fn retain_mut_new<F>(self, f: F) -> Self where F: FnMut(&mut Self::Item) -> bool; fn rotate_left_new(self, mid: usize) -> Self; fn rotate_right_new(self, mid: usize) -> Self; fn shrink_to_new(self, min_capacity: usize) -> Self; fn shrink_to_fit_new(self) -> Self; fn split_off_new(self, at: usize) -> (Self, Self) where Self: Sized; fn swap_new(self, i: usize, j: usize) -> Self; fn swap_remove_back_new(self, index: usize) -> (Option<Self::Item>, Self); fn swap_remove_front_new(self, index: usize) -> (Option<Self::Item>, Self); fn truncate_new(self, len: usize) -> Self; fn try_reserve_new( self, additional: usize, ) -> (Result<(), TryReserveError>, Self); fn try_reserve_exact_new( self, additional: usize, ) -> (Result<(), TryReserveError>, Self);
}

Required Associated Types§

Required Methods§

Source

fn append_new(self, other: Self) -> Self

Source

fn clear_new(self) -> Self

Source

fn insert_new(self, index: usize, value: Self::Item) -> Self

Source

fn make_contiguous_new(self) -> Self

Source

fn pop_back_new(self) -> (Option<Self::Item>, Self)

Source

fn pop_front_new(self) -> (Option<Self::Item>, Self)

Source

fn push_back_new(self, value: Self::Item) -> Self

Source

fn push_front_new(self, value: Self::Item) -> Self

Source

fn remove_new(self, index: usize) -> (Option<Self::Item>, Self)

Source

fn reserve_new(self, additional: usize) -> Self

Source

fn reserve_exact_new(self, additional: usize) -> Self

Source

fn resize_new(self, new_len: usize, value: Self::Item) -> Self
where Self::Item: Clone,

Source

fn resize_with_new( self, new_len: usize, generator: impl FnMut() -> Self::Item, ) -> Self

Source

fn retain_new<F>(self, f: F) -> Self
where F: FnMut(&Self::Item) -> bool,

Source

fn retain_mut_new<F>(self, f: F) -> Self
where F: FnMut(&mut Self::Item) -> bool,

Source

fn rotate_left_new(self, mid: usize) -> Self

Source

fn rotate_right_new(self, mid: usize) -> Self

Source

fn shrink_to_new(self, min_capacity: usize) -> Self

Source

fn shrink_to_fit_new(self) -> Self

Source

fn split_off_new(self, at: usize) -> (Self, Self)
where Self: Sized,

Source

fn swap_new(self, i: usize, j: usize) -> Self

Source

fn swap_remove_back_new(self, index: usize) -> (Option<Self::Item>, Self)

Source

fn swap_remove_front_new(self, index: usize) -> (Option<Self::Item>, Self)

Source

fn truncate_new(self, len: usize) -> Self

Source

fn try_reserve_new( self, additional: usize, ) -> (Result<(), TryReserveError>, Self)

Source

fn try_reserve_exact_new( self, additional: usize, ) -> (Result<(), TryReserveError>, Self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> FunctionalVecDeque for VecDeque<T>

Source§

type Item = T

Source§

fn append_new(self, other: Self) -> Self

Source§

fn clear_new(self) -> Self

Source§

fn insert_new(self, index: usize, value: Self::Item) -> Self

Source§

fn make_contiguous_new(self) -> Self

Source§

fn pop_back_new(self) -> (Option<Self::Item>, Self)

Source§

fn pop_front_new(self) -> (Option<Self::Item>, Self)

Source§

fn push_back_new(self, value: Self::Item) -> Self

Source§

fn push_front_new(self, value: Self::Item) -> Self

Source§

fn remove_new(self, index: usize) -> (Option<Self::Item>, Self)

Source§

fn reserve_new(self, additional: usize) -> Self

Source§

fn reserve_exact_new(self, additional: usize) -> Self

Source§

fn resize_new(self, new_len: usize, value: Self::Item) -> Self
where Self::Item: Clone,

Source§

fn resize_with_new( self, new_len: usize, generator: impl FnMut() -> Self::Item, ) -> Self

Source§

fn retain_new<F>(self, f: F) -> Self
where F: FnMut(&Self::Item) -> bool,

Source§

fn retain_mut_new<F>(self, f: F) -> Self
where F: FnMut(&mut Self::Item) -> bool,

Source§

fn rotate_left_new(self, mid: usize) -> Self

Source§

fn rotate_right_new(self, mid: usize) -> Self

Source§

fn shrink_to_new(self, min_capacity: usize) -> Self

Source§

fn shrink_to_fit_new(self) -> Self

Source§

fn split_off_new(self, at: usize) -> (Self, Self)
where Self: Sized,

Source§

fn swap_new(self, i: usize, j: usize) -> Self

Source§

fn swap_remove_back_new(self, index: usize) -> (Option<Self::Item>, Self)

Source§

fn swap_remove_front_new(self, index: usize) -> (Option<Self::Item>, Self)

Source§

fn truncate_new(self, len: usize) -> Self

Source§

fn try_reserve_new( self, additional: usize, ) -> (Result<(), TryReserveError>, Self)

Source§

fn try_reserve_exact_new( self, additional: usize, ) -> (Result<(), TryReserveError>, Self)

Implementors§