pub struct AnchorSupply { /* private fields */ }Implementations§
Source§impl AnchorSupply
impl AnchorSupply
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn get(&self, entity_idx: usize) -> Option<usize>
pub fn set(&mut self, entity_idx: usize, anchor_idx: usize) -> Option<usize>
pub fn remove(&mut self, entity_idx: usize) -> Option<usize>
pub fn cascade( &mut self, entity_indices: impl IntoIterator<Item = usize>, anchor_idx: usize, )
pub fn clear(&mut self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&usize, &usize)>
pub fn entities_for_anchor(&self, anchor_idx: usize) -> Vec<usize>
Trait Implementations§
Source§impl Debug for AnchorSupply
impl Debug for AnchorSupply
Source§impl Default for AnchorSupply
impl Default for AnchorSupply
Source§fn default() -> AnchorSupply
fn default() -> AnchorSupply
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnchorSupply
impl RefUnwindSafe for AnchorSupply
impl Send for AnchorSupply
impl Sync for AnchorSupply
impl Unpin for AnchorSupply
impl UnsafeUnpin for AnchorSupply
impl UnwindSafe for AnchorSupply
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