#[repr(transparent)]pub struct Key<const N: usize = 24>(pub [u8; N]);Expand description
A small ascii byte array stored on the stack and used similarly to a string to represent things like animation keys, etc, without requring a heap allocation.
Tuple Fields§
§0: [u8; N]Implementations§
Trait Implementations§
impl<const N: usize> Copy for Key<N>
impl<const N: usize> Eq for Key<N>
impl<const N: usize> StructuralPartialEq for Key<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for Key<N>
impl<const N: usize> RefUnwindSafe for Key<N>
impl<const N: usize> Send for Key<N>
impl<const N: usize> Sync for Key<N>
impl<const N: usize> Unpin for Key<N>
impl<const N: usize> UnwindSafe for Key<N>
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<T> FromWorld for Twhere
    T: Default,
 
impl<T> FromWorld for Twhere
    T: Default,
Source§fn from_world(_world: &mut World) -> T
 
fn from_world(_world: &mut World) -> T
Creates 
Self using data from the given World.Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more