pub struct InputSprite {
pub bytes: Vec<u8>,
pub dimensions: (u32, u32),
}Fields§
§bytes: Vec<u8>§dimensions: (u32, u32)Implementations§
Source§impl InputSprite
impl InputSprite
pub fn trimmed(&self, stride: usize, alpha_channel_index: usize) -> InputSprite
Trait Implementations§
Source§impl Clone for InputSprite
impl Clone for InputSprite
Source§fn clone(&self) -> InputSprite
fn clone(&self) -> InputSprite
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 InputSprite
impl RefUnwindSafe for InputSprite
impl Send for InputSprite
impl Sync for InputSprite
impl Unpin for InputSprite
impl UnwindSafe for InputSprite
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