Skip to main content

ParseSetting

Trait ParseSetting 

Source
pub trait ParseSetting: Sized {
    // Required method
    fn parse_setting(s: &str) -> Result<Self, &'static str>;
}
Expand description

Parses a HarfBuzz-style setting from text.

This includes font variations, whose type is defined by read-fonts and therefore cannot implement FromStr here.

Required Methods§

Source

fn parse_setting(s: &str) -> Result<Self, &'static str>

Parses a setting from its textual representation.

§Errors

Returns an error if the text is not a valid setting.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§