pub struct FixedAtlas { /* private fields */ }
Implementations§
Source§impl FixedAtlas
impl FixedAtlas
pub fn new(grid_size: UVec2, material_ref: SpriteMaterialRef) -> Self
Trait Implementations§
Source§impl AtlasLookup for FixedAtlas
impl AtlasLookup for FixedAtlas
Source§impl Debug for FixedAtlas
impl Debug for FixedAtlas
Source§impl PartialEq for FixedAtlas
impl PartialEq for FixedAtlas
impl Eq for FixedAtlas
impl StructuralPartialEq for FixedAtlas
Auto Trait Implementations§
impl Freeze for FixedAtlas
impl !RefUnwindSafe for FixedAtlas
impl !Send for FixedAtlas
impl !Sync for FixedAtlas
impl Unpin for FixedAtlas
impl !UnwindSafe for FixedAtlas
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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