CompressionFormatExt

Trait CompressionFormatExt 

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§

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

Retrieves format metadata from the shared registry.

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

Returns the standard default file extension associated with the format.

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.

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§

§

impl CompressionFormatExt for FormatId

§

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

§

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

§

fn is_implemented_in_repo(&self) -> bool

§

fn default_verify(&self) -> bool

§

impl CompressionFormatExt for SupportedCompressionFormat

§

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

§

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

§

fn is_implemented_in_repo(&self) -> bool

§

fn default_verify(&self) -> bool

§

impl CompressionFormatExt for SupportedDecompressionFormat

§

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

§

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

§

fn is_implemented_in_repo(&self) -> bool

§

fn default_verify(&self) -> bool

Implementors§