pub struct Frame { /* private fields */ }
Expand description
A frame of an image often being the complete image
Implementations§
Source§impl Frame
impl Frame
pub fn buf_bytes(&self) -> Bytes
pub fn buf_slice(&self) -> &[u8] ⓘ
pub fn memory_format(&self) -> MemoryFormat
pub fn color_state(&self) -> &ColorState
Sourcepub fn delay(&self) -> Option<Duration>
pub fn delay(&self) -> Option<Duration>
Duration to show frame for animations.
If the value is not set, the image is not animated.
pub fn details(&self) -> &FrameDetails
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin 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