pub trait CompressionFormatExt {
// Required methods
fn format_info(&self) -> Option<&'static FormatInfo>;
fn extension(&self) -> &'static str;
fn is_implemented_in_repo(&self) -> bool;
fn default_verify(&self) -> bool;
}Expand description
Extension trait adding compression-specific utilities to [FormatId].
Required Methods§
Sourcefn format_info(&self) -> Option<&'static FormatInfo>
fn format_info(&self) -> Option<&'static FormatInfo>
Retrieves format metadata from the shared registry.
Sourcefn extension(&self) -> &'static str
fn extension(&self) -> &'static str
Returns the standard default file extension associated with the format.
Sourcefn is_implemented_in_repo(&self) -> bool
fn is_implemented_in_repo(&self) -> bool
Returns true if this compression format is implemented natively in this repository, rather than being provided by an external crate.
Sourcefn default_verify(&self) -> bool
fn default_verify(&self) -> bool
Returns the default verification setting for this format when compressing. In-tree implementations default to verifying output, while external crate implementations default to not verifying.