Trait OptionEntry

Source
pub trait OptionEntry {
    // Required methods
    fn name(&self) -> &str;
    fn as_string(&self) -> Result<String>;
    fn as_number(&self) -> Result<RpNumber>;
    fn as_identifier(&self) -> Result<String>;
}

Required Methods§

Source

fn name(&self) -> &str

Get the name of the option.

Source

fn as_string(&self) -> Result<String>

Get the value as a string.

Source

fn as_number(&self) -> Result<RpNumber>

Get the value as an 32-bit unsigned integer.

Source

fn as_identifier(&self) -> Result<String>

Get the value as an identifier.

Implementors§