pub struct Aseprite { /* private fields */ }
Expand description
Data structure representing an Aseprite file
Implementations§
Source§impl Aseprite
impl Aseprite
Get the AsepriteTag
s defined in this Aseprite
Sourcepub fn layers(&self) -> AsepriteLayers<'_>
pub fn layers(&self) -> AsepriteLayers<'_>
Get the associated AsepriteLayer
s defined in this Aseprite
Sourcepub fn frames(&self) -> AsepriteFrames<'_>
pub fn frames(&self) -> AsepriteFrames<'_>
Get the frames inside this aseprite
Sourcepub fn frame_infos(&self) -> &[AsepriteFrameInfo]
pub fn frame_infos(&self) -> &[AsepriteFrameInfo]
Get infos about the contained frames
Sourcepub fn slices(&self) -> AsepriteSlices<'_>
pub fn slices(&self) -> AsepriteSlices<'_>
Get the slices inside this aseprite
Source§impl Aseprite
impl Aseprite
Sourcepub fn from_raw(raw: RawAseprite) -> Result<Self, AsepriteError>
pub fn from_raw(raw: RawAseprite) -> Result<Self, AsepriteError>
Construct a Aseprite
from a RawAseprite
Sourcepub fn from_bytes<S: AsRef<[u8]>>(buffer: S) -> Result<Self, AsepriteError>
pub fn from_bytes<S: AsRef<[u8]>>(buffer: S) -> Result<Self, AsepriteError>
Construct a Aseprite
from a &[u8]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Aseprite
impl RefUnwindSafe for Aseprite
impl Send for Aseprite
impl Sync for Aseprite
impl Unpin for Aseprite
impl UnwindSafe for Aseprite
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