pub struct Encoding { /* private fields */ }
Expand description
The image’s colorspace plus some extra encoding options.
Implementations§
source§impl Encoding
impl Encoding
sourcepub fn add_modifier(self, modifier: Modifier) -> Self
pub fn add_modifier(self, modifier: Modifier) -> Self
Add an encoding option.
sourcepub fn remove_modifier(self, modifier: Modifier) -> Self
pub fn remove_modifier(self, modifier: Modifier) -> Self
Remove an encoding option.
sourcepub fn has_modifier(self, modifier: Modifier) -> bool
pub fn has_modifier(self, modifier: Modifier) -> bool
Check if an encoding option has been set.
sourcepub fn colorspace(self) -> Colorspace
pub fn colorspace(self) -> Colorspace
Gets the colorspace of the encoding.
Trait Implementations§
source§impl From<Colorspace> for Encoding
impl From<Colorspace> for Encoding
source§fn from(csp: Colorspace) -> Self
fn from(csp: Colorspace) -> Self
Converts to this type from the input type.