pub struct GifOptions {
pub input: PathBuf,
pub output: PathBuf,
pub fps: u16,
pub repeat: u16,
pub pad: u32,
}Expand description
Options for exporting PNG frames as a GIF preview.
Fields§
§input: PathBufInput PNG file or directory containing PNG frames.
output: PathBufOutput GIF file path.
fps: u16Frames per second for the exported GIF.
repeat: u16Number of repeats. 0 means infinite looping.
pad: u32Extra padding added around the largest frame.
Trait Implementations§
Source§impl Clone for GifOptions
impl Clone for GifOptions
Source§fn clone(&self) -> GifOptions
fn clone(&self) -> GifOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GifOptions
impl RefUnwindSafe for GifOptions
impl Send for GifOptions
impl Sync for GifOptions
impl Unpin for GifOptions
impl UnsafeUnpin for GifOptions
impl UnwindSafe for GifOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more