pub enum AlphCompression {
None,
Lossless,
Reserved(u8),
}Expand description
Compression method (C) per RFC 9649 §2.7.1.2.
The spec enumerates 0 (no compression) and 1 (WebP lossless
format). Higher values are not defined; we preserve them in
Self::Reserved so callers can refuse on encounter without the
parser itself imposing that policy.
Variants§
None
0: No compression — the alpha bitstream is raw 8-bit values in
scan order, of length width * height.
Lossless
1: Lossless — the alpha bitstream is a §3 VP8L image-stream
with implicit dimensions width x height (no header).
Reserved(u8)
2 or 3 — undefined by §2.7.1.2.
Trait Implementations§
Source§impl Clone for AlphCompression
impl Clone for AlphCompression
Source§fn clone(&self) -> AlphCompression
fn clone(&self) -> AlphCompression
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 moreimpl Copy for AlphCompression
Source§impl Debug for AlphCompression
impl Debug for AlphCompression
impl Eq for AlphCompression
Source§impl PartialEq for AlphCompression
impl PartialEq for AlphCompression
Source§fn eq(&self, other: &AlphCompression) -> bool
fn eq(&self, other: &AlphCompression) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AlphCompression
Auto Trait Implementations§
impl Freeze for AlphCompression
impl RefUnwindSafe for AlphCompression
impl Send for AlphCompression
impl Sync for AlphCompression
impl Unpin for AlphCompression
impl UnsafeUnpin for AlphCompression
impl UnwindSafe for AlphCompression
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