Struct reproto_parser::ast::OptionDecl
[−]
[src]
pub struct OptionDecl<'input> { pub name: &'input str, pub value: Loc<Value<'input>>, }
Fields
name: &'input str
value: Loc<Value<'input>>
Trait Implementations
impl<'input> Debug for OptionDecl<'input>
[src]
impl<'input> PartialEq for OptionDecl<'input>
[src]
fn eq(&self, __arg_0: &OptionDecl<'input>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &OptionDecl<'input>) -> bool
[src]
This method tests for !=
.
impl<'input> Eq for OptionDecl<'input>
[src]
impl<'input> OptionEntry for OptionDecl<'input>
[src]
fn name(&self) -> &str
[src]
Get the name of the option.
fn as_string(&self) -> Result<String, &'static str>
[src]
Get the value as a string.
fn as_number(&self) -> Result<RpNumber, &'static str>
[src]
Get the value as an 32-bit unsigned integer.
fn as_identifier(&self) -> Result<String, &'static str>
[src]
Get the value as an identifier.