pub struct AsepriteLayers<'a> { /* private fields */ }
Expand description
The layers inside an aseprite file
Implementations§
Source§impl<'a> AsepriteLayers<'a>
impl<'a> AsepriteLayers<'a>
Sourcepub fn get_by_name<N: AsRef<str>>(&self, name: N) -> Option<&AsepriteLayer>
pub fn get_by_name<N: AsRef<str>>(&self, name: N) -> Option<&AsepriteLayer>
Get a layer by its name
If you have its id, prefer fetching it using [get_by_id
]
Sourcepub fn get_by_id(&self, id: usize) -> Option<&AsepriteLayer>
pub fn get_by_id(&self, id: usize) -> Option<&AsepriteLayer>
Get a layer by its id
Auto Trait Implementations§
impl<'a> Freeze for AsepriteLayers<'a>
impl<'a> RefUnwindSafe for AsepriteLayers<'a>
impl<'a> Send for AsepriteLayers<'a>
impl<'a> Sync for AsepriteLayers<'a>
impl<'a> Unpin for AsepriteLayers<'a>
impl<'a> UnwindSafe for AsepriteLayers<'a>
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