Trait reproto_core::OptionEntry
[−]
[src]
pub trait OptionEntry { fn name(&self) -> &str; fn as_string(&self) -> Result<String, &'static str>; fn as_number(&self) -> Result<RpNumber, &'static str>; fn as_identifier(&self) -> Result<String, &'static str>; }
Required Methods
fn name(&self) -> &str
Get the name of the option.
fn as_string(&self) -> Result<String, &'static str>
Get the value as a string.
fn as_number(&self) -> Result<RpNumber, &'static str>
Get the value as an 32-bit unsigned integer.
fn as_identifier(&self) -> Result<String, &'static str>
Get the value as an identifier.
Implementors
impl OptionEntry for RpOptionDecl