Struct Frame

struct Frame { ... }

A single animation frame

Implementations

impl Frame

fn new(buffer: RgbaImage) -> Frame

Constructs a new frame without any delay.

fn from_parts(buffer: RgbaImage, left: u32, top: u32, delay: Delay) -> Frame

Constructs a new frame

fn delay(self: &Self) -> Delay

Delay of this frame

fn buffer(self: &Self) -> &RgbaImage

Returns the image buffer

fn buffer_mut(self: &mut Self) -> &mut RgbaImage

Returns a mutable image buffer

fn into_buffer(self: Self) -> RgbaImage

Returns the image buffer

fn left(self: &Self) -> u32

Returns the x offset

fn top(self: &Self) -> u32

Returns the y offset

impl Clone for Frame

fn clone(self: &Self) -> Self
fn clone_from(self: &mut Self, source: &Self)

impl Freeze for Frame

impl RefUnwindSafe for Frame

impl Send for Frame

impl Sync for Frame

impl Unpin for Frame

impl UnsafeUnpin for Frame

impl UnwindSafe for Frame

impl<T> Any for Frame

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Frame

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Frame

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Frame

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Frame

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for Frame

unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T> ToOwned for Frame

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Frame

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Frame

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Frame

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>