pub struct SpriteHandle(/* private fields */);
Expand description
Handle for SpriteAsset
.
Created with ResourceDatabase::find_sprite
, and can be resolved into a borrow of the asset itself with ResourceDatabase::get_sprite
.
Trait Implementations§
Source§impl Clone for SpriteHandle
impl Clone for SpriteHandle
Source§fn clone(&self) -> SpriteHandle
fn clone(&self) -> SpriteHandle
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SpriteHandle
impl Debug for SpriteHandle
impl Copy for SpriteHandle
Auto Trait Implementations§
impl Freeze for SpriteHandle
impl RefUnwindSafe for SpriteHandle
impl Send for SpriteHandle
impl Sync for SpriteHandle
impl Unpin for SpriteHandle
impl UnwindSafe for SpriteHandle
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