pub struct SpriteInstanceSetId { /* private fields */ }Expand description
Handle to a pre-uploaded sprite instance set produced by
DeviceResources::upload_sprite_instance_set.
Backs entity sprites such as NPCs, item drops, and damage numbers.
Implementations§
Source§impl SpriteInstanceSetId
impl SpriteInstanceSetId
Sourcepub const INVALID: SpriteInstanceSetId
pub const INVALID: SpriteInstanceSetId
A handle that refers to nothing. Store lookups always return
None for it. Use it as the default / placeholder value where a
real resource has not been assigned yet.
Trait Implementations§
Source§impl Clone for SpriteInstanceSetId
impl Clone for SpriteInstanceSetId
Source§fn clone(&self) -> SpriteInstanceSetId
fn clone(&self) -> SpriteInstanceSetId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ContentHandle for SpriteInstanceSetId
impl ContentHandle for SpriteInstanceSetId
Source§const INVALID: Self = SpriteInstanceSetId::INVALID
const INVALID: Self = SpriteInstanceSetId::INVALID
The handle value that refers to nothing. Store lookups always return
None for it.Source§fn generation(&self) -> u32
fn generation(&self) -> u32
The generation this handle was issued against.
Source§fn from_parts(index: u32, generation: u32) -> Self
fn from_parts(index: u32, generation: u32) -> Self
Build a handle from a raw slot index and generation. The store mints a
handle this way on insert; outside code obtains handles from upload calls
and treats them as opaque.
impl Copy for SpriteInstanceSetId
Source§impl Debug for SpriteInstanceSetId
impl Debug for SpriteInstanceSetId
impl Eq for SpriteInstanceSetId
Source§impl Hash for SpriteInstanceSetId
impl Hash for SpriteInstanceSetId
Source§impl PartialEq for SpriteInstanceSetId
impl PartialEq for SpriteInstanceSetId
Source§fn eq(&self, other: &SpriteInstanceSetId) -> bool
fn eq(&self, other: &SpriteInstanceSetId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpriteInstanceSetId
Auto Trait Implementations§
impl Freeze for SpriteInstanceSetId
impl RefUnwindSafe for SpriteInstanceSetId
impl Send for SpriteInstanceSetId
impl Sync for SpriteInstanceSetId
impl Unpin for SpriteInstanceSetId
impl UnsafeUnpin for SpriteInstanceSetId
impl UnwindSafe for SpriteInstanceSetId
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.