[−][src]Enum json_pest_parser::JSONValue
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]
fn eq(&self, other: &JSONValue<'a, S>) -> bool
[src]
fn ne(&self, other: &JSONValue<'a, S>) -> bool
[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,
S: Send,
impl<'a, S> Sync for JSONValue<'a, S> where
S: Sync,
S: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,