pub struct WebpFeatures {
pub width: usize,
pub height: usize,
pub has_alpha: bool,
pub has_animation: bool,
pub format: WebpFormat,
pub vp8x: Option<Vp8xHeader>,
}Expand description
High-level image features derived from the container and bitstream.
Fields§
§width: usizeImage or canvas width in pixels.
height: usizeImage or canvas height in pixels.
has_alpha: boolWhether alpha is present.
has_animation: boolWhether the container is animated.
format: WebpFormatUnderlying still-image codec kind.
vp8x: Option<Vp8xHeader>Optional extended header.
Trait Implementations§
Source§impl Clone for WebpFeatures
impl Clone for WebpFeatures
Source§fn clone(&self) -> WebpFeatures
fn clone(&self) -> WebpFeatures
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebpFeatures
impl Debug for WebpFeatures
Source§impl PartialEq for WebpFeatures
impl PartialEq for WebpFeatures
impl Copy for WebpFeatures
impl Eq for WebpFeatures
impl StructuralPartialEq for WebpFeatures
Auto Trait Implementations§
impl Freeze for WebpFeatures
impl RefUnwindSafe for WebpFeatures
impl Send for WebpFeatures
impl Sync for WebpFeatures
impl Unpin for WebpFeatures
impl UnsafeUnpin for WebpFeatures
impl UnwindSafe for WebpFeatures
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