Struct Frame
struct Frame { ... }
A single animation frame
Implementations
impl Frame
fn new(buffer: RgbaImage) -> FrameConstructs a new frame without any delay.
fn from_parts(buffer: RgbaImage, left: u32, top: u32, delay: Delay) -> FrameConstructs a new frame
fn delay(self: &Self) -> DelayDelay of this frame
fn buffer(self: &Self) -> &RgbaImageReturns the image buffer
fn buffer_mut(self: &mut Self) -> &mut RgbaImageReturns a mutable image buffer
fn into_buffer(self: Self) -> RgbaImageReturns the image buffer
fn left(self: &Self) -> u32Returns the x offset
fn top(self: &Self) -> u32Returns the y offset
impl Clone for Frame
fn clone(self: &Self) -> Selffn 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) -> TReturns the argument unchanged.
impl<T> Pointable for Frame
unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> ToOwned for Frame
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for Frame
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses 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>