VecExt

Trait VecExt 

Source
pub trait VecExt<T> {
    // Required methods
    fn try_remove(&mut self, idx: usize) -> Option<T>;
    fn try_swap_remove(&mut self, idx: usize) -> Option<T>;
}
Expand description

Extensions for Vec<T>.

Required Methods§

Source

fn try_remove(&mut self, idx: usize) -> Option<T>

Fallible version of .remove().

Source

fn try_swap_remove(&mut self, idx: usize) -> Option<T>

Fallible version of .swap_remove().

Implementations on Foreign Types§

Source§

impl<T> VecExt<T> for Vec<T>

Source§

fn try_remove(&mut self, idx: usize) -> Option<T>

Source§

fn try_swap_remove(&mut self, idx: usize) -> Option<T>

Implementors§