CompressionFormatExt

Trait CompressionFormatExt 

Source
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§

Source

fn format_info(&self) -> Option<&'static FormatInfo>

Retrieves format metadata from the shared registry.

Source

fn extension(&self) -> &'static str

Returns the standard default file extension associated with the format.

Source

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.

Source

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.

Implementations on Foreign Types§

Source§

impl CompressionFormatExt for FormatId

Source§

fn format_info(&self) -> Option<&'static FormatInfo>

Source§

fn extension(&self) -> &'static str

Source§

fn is_implemented_in_repo(&self) -> bool

Source§

fn default_verify(&self) -> bool

Source§

impl CompressionFormatExt for SupportedCompressionFormat

Source§

fn format_info(&self) -> Option<&'static FormatInfo>

Source§

fn extension(&self) -> &'static str

Source§

fn is_implemented_in_repo(&self) -> bool

Source§

fn default_verify(&self) -> bool

Source§

impl CompressionFormatExt for SupportedDecompressionFormat

Source§

fn format_info(&self) -> Option<&'static FormatInfo>

Source§

fn extension(&self) -> &'static str

Source§

fn is_implemented_in_repo(&self) -> bool

Source§

fn default_verify(&self) -> bool

Implementors§