Skip to main content

VecExt

Trait VecExt 

Source
pub trait VecExt<T> {
    // Required methods
    fn push_unique(&mut self, value: T) -> Option<T>
       where T: PartialEq;
    fn try_push<R>(&mut self, value: R)
       where R: Try<Output = T>;
}

Required Methods§

Source

fn push_unique(&mut self, value: T) -> Option<T>
where T: PartialEq,

Source

fn try_push<R>(&mut self, value: R)
where R: Try<Output = T>,

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> VecExt<T> for Vec<T>

Source§

fn push_unique(&mut self, value: T) -> Option<T>
where T: PartialEq,

Source§

fn try_push<R>(&mut self, value: R)
where R: Try<Output = T>,

Implementors§