Enum reproto_core::RpValue
[−]
[src]
pub enum RpValue {
String(String),
Number(RpNumber),
Identifier(String),
Array(Vec<Loc<RpValue>>),
}Variants
String(String)Number(RpNumber)Identifier(String)Array(Vec<Loc<RpValue>>)
Methods
impl RpValue[src]
pub fn as_str(&self) -> Result<&str>[src]
pub fn as_identifier(&self) -> Result<&str>[src]
pub fn as_string(&self) -> Result<&str>[src]
pub fn is_string(&self) -> bool[src]
Is this value a string.
pub fn into_ordinal(self) -> Result<RpEnumOrdinal>[src]
Trait Implementations
impl Debug for RpValue[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for RpValue[src]
fn clone(&self) -> RpValue[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