pub enum SlotAlloc {
Reuse(usize),
Append(usize),
}Expand description
Where a newly allocated draw record lands.
Variants§
Reuse(usize)
Reuse this vacated slot: overwrite the existing draw_objects entry.
Append(usize)
No free slot was available: append at this index (== the prior length).
Trait Implementations§
impl Copy for SlotAlloc
impl Eq for SlotAlloc
impl StructuralPartialEq for SlotAlloc
Auto Trait Implementations§
impl Freeze for SlotAlloc
impl RefUnwindSafe for SlotAlloc
impl Send for SlotAlloc
impl Sync for SlotAlloc
impl Unpin for SlotAlloc
impl UnsafeUnpin for SlotAlloc
impl UnwindSafe for SlotAlloc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.