Struct faer_core::group_helpers::VecGroup
source · pub struct VecGroup<E: Entity, T = UnitFor<E>> { /* private fields */ }Implementations§
source§impl<E: Entity, T> VecGroup<E, T>
impl<E: Entity, T> VecGroup<E, T>
pub fn from_inner(inner: GroupFor<E, Vec<T>>) -> Self
pub fn as_inner_ref(&self) -> GroupFor<E, &Vec<T>>
pub fn as_inner_mut(&mut self) -> GroupFor<E, &mut Vec<T>>
pub fn as_slice(&self) -> SliceGroup<'_, E, T>
pub fn as_slice_mut(&mut self) -> SliceGroupMut<'_, E, T>
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn capacity(&self) -> usize
pub fn reserve(&mut self, additional: usize)
pub fn reserve_exact(&mut self, additional: usize)
pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError>
pub fn try_reserve_exact( &mut self, additional: usize ) -> Result<(), TryReserveError>
pub fn truncate(&mut self, len: usize)
pub fn clear(&mut self)
pub fn resize(&mut self, new_len: usize, value: GroupFor<E, T>)where
T: Clone,
pub fn resize_with(&mut self, new_len: usize, f: impl FnMut() -> GroupFor<E, T>)
pub fn push(&mut self, value: GroupFor<E, T>)
pub fn pop(&mut self) -> Option<GroupFor<E, T>>
pub fn remove(&mut self, index: usize) -> GroupFor<E, T>
Trait Implementations§
impl<E: Entity, T: Send> Send for VecGroup<E, T>
impl<E: Entity, T: Sync> Sync for VecGroup<E, T>
Auto Trait Implementations§
impl<E, T> RefUnwindSafe for VecGroup<E, T>
impl<E, T> Unpin for VecGroup<E, T>
impl<E, T> UnwindSafe for VecGroup<E, T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more