[][src]Enum json_pest_parser::JSONValue

pub enum JSONValue<'a, S: BuildHasher> {
    Object(HashMap<&'a str, JSONValue<'a, S>, S>),
    Array(Vec<JSONValue<'a, S>>),
    String(&'a str),
    Number(f64),
    Boolean(bool),
    Null,
}

Variants

Object(HashMap<&'a str, JSONValue<'a, S>, S>)Array(Vec<JSONValue<'a, S>>)String(&'a str)Number(f64)Boolean(bool)Null

Methods

impl<'a, S: BuildHasher> JSONValue<'a, S>[src]

pub fn is_object(&self) -> bool[src]

pub fn to_object(&self) -> Option<&HashMap<&'a str, JSONValue<'a, S>, S>>[src]

pub fn is_array(&self) -> bool[src]

pub fn to_array(&self) -> Option<&Vec<JSONValue<'a, S>>>[src]

pub fn is_str(&self) -> bool[src]

pub fn to_str(&self) -> Option<&'a str>[src]

pub fn is_number(&self) -> bool[src]

pub fn to_number(&self) -> Option<f64>[src]

pub fn is_bool(&self) -> bool[src]

pub fn to_bool(&self) -> Option<bool>[src]

pub fn is_null(&self) -> bool[src]

Trait Implementations

impl<'a, S: PartialEq + BuildHasher> PartialEq<JSONValue<'a, S>> for JSONValue<'a, S>[src]

impl<'a, S: BuildHasher> ToString for JSONValue<'a, S>[src]

impl<'a, S: Debug + BuildHasher> Debug for JSONValue<'a, S>[src]

Auto Trait Implementations

impl<'a, S> Send for JSONValue<'a, S> where
    S: Send

impl<'a, S> Sync for JSONValue<'a, S> where
    S: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]