pub struct AsepriteSlice {
pub name: String,
pub valid_frame: u16,
pub position_x: i32,
pub position_y: i32,
pub width: u32,
pub height: u32,
pub nine_patch_info: Option<AsepriteNinePatchInfo>,
}
Expand description
A single Aseprite slice
Fields§
§name: String
The slice name
valid_frame: u16
The frame from which it is valid
position_x: i32
The slice’s x position
position_y: i32
The slice’s y position
width: u32
The slice’s width
height: u32
The slice’s height
nine_patch_info: Option<AsepriteNinePatchInfo>
Nine-Patch Info if it exists
Trait Implementations§
Source§impl Clone for AsepriteSlice
impl Clone for AsepriteSlice
Source§fn clone(&self) -> AsepriteSlice
fn clone(&self) -> AsepriteSlice
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for AsepriteSlice
impl RefUnwindSafe for AsepriteSlice
impl Send for AsepriteSlice
impl Sync for AsepriteSlice
impl Unpin for AsepriteSlice
impl UnwindSafe for AsepriteSlice
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