Enum Repeat

enum Repeat

Number of repetitions for a GIF animation

Variants

Finite(u16)

Finite number of repetitions

Infinite

Looping GIF

Implementations

impl Clone for Repeat

fn clone(self: &Self) -> Repeat

impl Copy for Repeat

impl Debug for Repeat

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

impl Freeze for Repeat

impl RefUnwindSafe for Repeat

impl Send for Repeat

impl Sync for Repeat

impl Unpin for Repeat

impl UnwindSafe for Repeat

impl<T> Any for Repeat

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Repeat

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

impl<T> BorrowMut for Repeat

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

impl<T> CloneToUninit for Repeat

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

impl<T> From for Repeat

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for Repeat

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 Repeat

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

impl<T, U> Into for Repeat

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 Repeat

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

impl<T, U> TryInto for Repeat

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