Struct reproto_core::RpOptionDecl
[−]
[src]
pub struct RpOptionDecl {
pub name: String,
pub value: Loc<RpValue>,
}Fields
name: String
value: Loc<RpValue>
Trait Implementations
impl Debug for RpOptionDecl[src]
impl Clone for RpOptionDecl[src]
fn clone(&self) -> RpOptionDecl[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl OptionEntry for RpOptionDecl[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.