enum CoordStorage {
None,
Inline([NormalizedCoord; 15], u8),
Heap(Vec<NormalizedCoord>),
}Variants§
Implementations§
Source§impl CoordStorage
impl CoordStorage
Sourcefn clear_if_all_zeroes(&mut self)
fn clear_if_all_zeroes(&mut self)
Empty storage if all the coordinates are zeros. This allows us to bypass variation processing for the default instance with a simple is_empty() check.
fn resize(&mut self, new_len: usize)
fn as_slice(&self) -> &[NormalizedCoord] ⓘ
fn as_mut_slice(&mut self) -> &mut [NormalizedCoord] ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoordStorage
impl RefUnwindSafe for CoordStorage
impl Send for CoordStorage
impl Sync for CoordStorage
impl Unpin for CoordStorage
impl UnsafeUnpin for CoordStorage
impl UnwindSafe for CoordStorage
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