Struct AnimationControl

pub struct AnimationControl { pub num_frames: u32, pub num_plays: u32 }

Animation control information

Fields

num_frames: u32

Number of frames

num_plays: u32

Number of times to loop this APNG. 0 indicates infinite looping.

Implementations

impl AnimationControl

fn encode<W: Write>(self, w: &mut W) -> Result<(), EncodingError>

Trait Implementations

impl Clone for AnimationControl

fn clone(&self) -> Self

impl Copy for AnimationControl

impl Debug for AnimationControl

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl Freeze for AnimationControl

impl RefUnwindSafe for AnimationControl

impl Send for AnimationControl

impl Sync for AnimationControl

impl Unpin for AnimationControl

impl UnsafeUnpin for AnimationControl

impl UnwindSafe for AnimationControl

Blanket Implementations

impl<T> Any for AnimationControl where T: 'static + ?Sized,

impl<T> Borrow<T> for AnimationControl where T: ?Sized,

impl<T> BorrowMut<T> for AnimationControl where T: ?Sized,

impl<T> CloneToUninit for AnimationControl where T: Clone,

impl<T> From<T> for AnimationControl

impl<T> ToOwned for AnimationControl where T: Clone,

impl<T, U> Into<U> for AnimationControl where U: From<T>,

impl<T, U> TryFrom<U> for AnimationControl where U: Into<T>,

impl<T, U> TryInto<U> for AnimationControl where U: TryFrom<T>,