pub struct SpriteRef(/* private fields */);
Expand description
Platform-specific sprite reference.
Implementations§
Source§impl SpriteRef
impl SpriteRef
Sourcepub fn new(id: u64) -> SpriteRef
pub fn new(id: u64) -> SpriteRef
Creates a new SpriteRef
. Should only be created in the platform
implementation, which also knows how the inner value is going to be
used.
Sourcepub fn inner(self) -> u64
pub fn inner(self) -> u64
Returns the inner value passed into SpriteRef::new
. Generally only
relevant to the platform implementation.
Trait Implementations§
Source§impl Ord for SpriteRef
impl Ord for SpriteRef
Source§impl PartialOrd for SpriteRef
impl PartialOrd for SpriteRef
impl Copy for SpriteRef
impl Eq for SpriteRef
impl StructuralPartialEq for SpriteRef
Auto Trait Implementations§
impl Freeze for SpriteRef
impl RefUnwindSafe for SpriteRef
impl Send for SpriteRef
impl Sync for SpriteRef
impl Unpin for SpriteRef
impl UnwindSafe for SpriteRef
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