#[non_exhaustive]pub struct Frame {
pub image: AvifImage,
pub delay: Option<Duration>,
}Expand description
One picture of a multi-picture file (crate::decode_all): a
sample of an avis image sequence (with its display delay) or
one entity of an image-burst group (no delay).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.image: AvifImage§delay: Option<Duration>How long the frame is shown before the next one (sequence
samples); None for bursts and stills.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Frame
Auto Trait Implementations§
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
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