pub trait VecLikeSolid: VecLike {
// Required methods
fn swap_remove(&mut self, index: usize) -> Self::Elem;
fn retain_mut<F>(&mut self, f: F)
where F: FnMut(&mut Self::Elem) -> bool;
fn pop_if<F>(&mut self, predicate: F) -> Option<Self::Elem>
where F: FnOnce(&mut Self::Elem) -> bool;
}Required Methods§
fn swap_remove(&mut self, index: usize) -> Self::Elem
fn retain_mut<F>(&mut self, f: F)
fn pop_if<F>(&mut self, predicate: F) -> Option<Self::Elem>
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<A: Array> VecLikeSolid for SmallVec<A>
Available on crate feature smallvec only.
impl<A: Array> VecLikeSolid for SmallVec<A>
Available on crate feature
smallvec only.Source§impl<S> VecLikeSolid for Cow<'_, S>
impl<S> VecLikeSolid for Cow<'_, S>
Source§impl<T> VecLikeSolid for Vec<T>
impl<T> VecLikeSolid for Vec<T>
Source§impl<T> VecLikeSolid for ArcVec<T>
Available on crate feature rc-vec only.
impl<T> VecLikeSolid for ArcVec<T>
Available on crate feature
rc-vec only.Source§impl<T> VecLikeSolid for RcVec<T>
Available on crate feature rc-vec only.
impl<T> VecLikeSolid for RcVec<T>
Available on crate feature
rc-vec only.Source§impl<V: VecLikeSolid + Clone> VecLikeSolid for Rc<V>
impl<V: VecLikeSolid + Clone> VecLikeSolid for Rc<V>
Source§impl<V: VecLikeSolid + Clone> VecLikeSolid for Arc<V>
impl<V: VecLikeSolid + Clone> VecLikeSolid for Arc<V>
Source§impl<V: VecLikeSolid> VecLikeSolid for &mut V
impl<V: VecLikeSolid> VecLikeSolid for &mut V
Source§impl<V: VecLikeSolid> VecLikeSolid for Box<V>
impl<V: VecLikeSolid> VecLikeSolid for Box<V>
Source§impl<V: VecLikeSolid> VecLikeSolid for UniqArc<V>
Available on crate feature unique-rc only.
impl<V: VecLikeSolid> VecLikeSolid for UniqArc<V>
Available on crate feature
unique-rc only.Source§impl<V: VecLikeSolid> VecLikeSolid for UniqRc<V>
Available on crate feature unique-rc only.
impl<V: VecLikeSolid> VecLikeSolid for UniqRc<V>
Available on crate feature
unique-rc only.