pub enum MaskEncoding {
None,
Explicit,
External,
ImplicitAllInvalid,
}Expand description
How a decoded blob represents pixel validity.
Variants§
None
Every pixel is valid and no mask is needed.
Explicit
This blob stores explicit mask bytes.
External
This blob inherits a mask supplied externally or by a preceding band.
ImplicitAllInvalid
Every pixel is invalid, represented without stored mask bytes.
Implementations§
Source§impl MaskEncoding
impl MaskEncoding
Sourcepub fn mask_count(self) -> u32
pub fn mask_count(self) -> u32
Returns the number of stored or implicit masks represented by this encoding.
Sourcepub fn uses_external_mask(self) -> bool
pub fn uses_external_mask(self) -> bool
Returns whether mask bytes must come from outside this blob.
Sourcepub fn stores_mask_bytes(self) -> bool
pub fn stores_mask_bytes(self) -> bool
Returns whether the blob stores an explicit mask payload.
Trait Implementations§
Source§impl Clone for MaskEncoding
impl Clone for MaskEncoding
Source§fn clone(&self) -> MaskEncoding
fn clone(&self) -> MaskEncoding
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 MaskEncoding
Source§impl Debug for MaskEncoding
impl Debug for MaskEncoding
impl Eq for MaskEncoding
Source§impl PartialEq for MaskEncoding
impl PartialEq for MaskEncoding
impl StructuralPartialEq for MaskEncoding
Auto Trait Implementations§
impl Freeze for MaskEncoding
impl RefUnwindSafe for MaskEncoding
impl Send for MaskEncoding
impl Sync for MaskEncoding
impl Unpin for MaskEncoding
impl UnsafeUnpin for MaskEncoding
impl UnwindSafe for MaskEncoding
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