#[non_exhaustive]pub enum GainMapPresence {
Unknown,
Absent,
Available(Box<GainMapInfo>),
}Expand description
Gain map detection state during probe.
Three-state presence indicator:
Unknown— can’t determine from bytes probed (gain map may be beyond probe window)Absent— definitively no gain map in this fileAvailable— gain map found and metadata parsed
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
Cannot determine gain map presence from bytes probed so far.
Absent
File definitively has no gain map.
Available(Box<GainMapInfo>)
Gain map present, metadata parsed.
Implementations§
Source§impl GainMapPresence
impl GainMapPresence
Sourcepub fn is_present(&self) -> bool
pub fn is_present(&self) -> bool
Whether a gain map is definitely present.
Sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Whether gain map presence is unknown.
Sourcepub fn info(&self) -> Option<&GainMapInfo>
pub fn info(&self) -> Option<&GainMapInfo>
Reference to the gain map info, if available.
Sourcepub fn into_info(self) -> Option<Box<GainMapInfo>>
pub fn into_info(self) -> Option<Box<GainMapInfo>>
Consume and return the gain map info, if available.
Trait Implementations§
Source§impl Clone for GainMapPresence
impl Clone for GainMapPresence
Source§fn clone(&self) -> GainMapPresence
fn clone(&self) -> GainMapPresence
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 GainMapPresence
impl Debug for GainMapPresence
Source§impl Default for GainMapPresence
impl Default for GainMapPresence
Source§fn default() -> GainMapPresence
fn default() -> GainMapPresence
Returns the “default value” for a type. Read more
Source§impl PartialEq for GainMapPresence
impl PartialEq for GainMapPresence
impl StructuralPartialEq for GainMapPresence
Auto Trait Implementations§
impl Freeze for GainMapPresence
impl RefUnwindSafe for GainMapPresence
impl Send for GainMapPresence
impl Sync for GainMapPresence
impl Unpin for GainMapPresence
impl UnsafeUnpin for GainMapPresence
impl UnwindSafe for GainMapPresence
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