Enum gif::encoder::ExtensionData
source · #[non_exhaustive]pub enum ExtensionData {
Control {
flags: u8,
delay: u16,
trns: u8,
},
Repetitions(Repeat),
}
Expand description
Extension data.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Control
Control extension. Use ExtensionData::new_control_ext
to construct.
Repetitions(Repeat)
Sets the number of repetitions
Implementations§
source§impl ExtensionData
impl ExtensionData
sourcepub fn new_control_ext(
delay: u16,
dispose: DisposalMethod,
needs_user_input: bool,
trns: Option<u8>,
) -> ExtensionData
pub fn new_control_ext( delay: u16, dispose: DisposalMethod, needs_user_input: bool, trns: Option<u8>, ) -> ExtensionData
Constructor for control extension data.
delay
is given in units of 10 ms.
Auto Trait Implementations§
impl Freeze for ExtensionData
impl RefUnwindSafe for ExtensionData
impl Send for ExtensionData
impl Sync for ExtensionData
impl Unpin for ExtensionData
impl UnwindSafe for ExtensionData
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