pub struct SpriteCatalog { /* private fields */ }Expand description
Index of all sprite sheets and their mode ids.
Implementations§
Source§impl SpriteCatalog
impl SpriteCatalog
pub fn mode_ids(&self, sheet_id: &str) -> &[String]
pub fn sheet_ids(&self) -> impl Iterator<Item = &String>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn presentation_defaults(&self) -> &SpritePresentationDefaults
pub fn set_presentation_defaults( &mut self, defaults: SpritePresentationDefaults, )
Trait Implementations§
Source§impl Clone for SpriteCatalog
impl Clone for SpriteCatalog
Source§fn clone(&self) -> SpriteCatalog
fn clone(&self) -> SpriteCatalog
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 Debug for SpriteCatalog
impl Debug for SpriteCatalog
Source§impl Default for SpriteCatalog
impl Default for SpriteCatalog
Source§fn default() -> SpriteCatalog
fn default() -> SpriteCatalog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpriteCatalog
impl RefUnwindSafe for SpriteCatalog
impl Send for SpriteCatalog
impl Sync for SpriteCatalog
impl Unpin for SpriteCatalog
impl UnsafeUnpin for SpriteCatalog
impl UnwindSafe for SpriteCatalog
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