pub struct SpriteSetId { /* private fields */ }Expand description
Handle to a pre-uploaded sprite set produced by
DeviceResources::upload_sprite_set.
Backs static billboards such as foliage, signage, and light flares.
Implementations§
Source§impl SpriteSetId
impl SpriteSetId
Sourcepub const INVALID: SpriteSetId
pub const INVALID: SpriteSetId
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 SpriteSetId
impl Clone for SpriteSetId
Source§fn clone(&self) -> SpriteSetId
fn clone(&self) -> SpriteSetId
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 SpriteSetId
impl ContentHandle for SpriteSetId
Source§const INVALID: Self = SpriteSetId::INVALID
const INVALID: Self = SpriteSetId::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 SpriteSetId
Source§impl Debug for SpriteSetId
impl Debug for SpriteSetId
impl Eq for SpriteSetId
Source§impl Hash for SpriteSetId
impl Hash for SpriteSetId
Source§impl PartialEq for SpriteSetId
impl PartialEq for SpriteSetId
Source§fn eq(&self, other: &SpriteSetId) -> bool
fn eq(&self, other: &SpriteSetId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpriteSetId
Auto Trait Implementations§
impl Freeze for SpriteSetId
impl RefUnwindSafe for SpriteSetId
impl Send for SpriteSetId
impl Sync for SpriteSetId
impl Unpin for SpriteSetId
impl UnsafeUnpin for SpriteSetId
impl UnwindSafe for SpriteSetId
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.