[][src]Enum jjson::JJSON

pub enum JJSON {
    Object(HashMap<String, JJSON>),
    Array(Vec<JJSON>),
    String(String),
    Number(f64),
    Boolean(bool),
}

Variants

Object(HashMap<String, JJSON>)
Array(Vec<JJSON>)
String(String)
Number(f64)
Boolean(bool)

Methods

impl JJSON[src]

pub fn parse(s: &str) -> Result<Self, String>[src]

Trait Implementations

impl Debug for JJSON[src]

impl Display for JJSON[src]

impl<'_, '_> From<&'_ &'_ str> for JJSON[src]

impl<'_> From<&'_ bool> for JJSON[src]

impl<'_> From<&'_ f64> for JJSON[src]

impl<'_> From<&'_ i32> for JJSON[src]

impl<'_> From<&'_ str> for JJSON[src]

impl<'_, '_> From<HashMap<&'_ str, &'_ str, RandomState>> for JJSON[src]

impl<'_> From<HashMap<&'_ str, JJSON, RandomState>> for JJSON[src]

impl<'_> From<HashMap<&'_ str, String, RandomState>> for JJSON[src]

impl<'_> From<HashMap<&'_ str, bool, RandomState>> for JJSON[src]

impl<'_> From<HashMap<&'_ str, f64, RandomState>> for JJSON[src]

impl<'_> From<HashMap<&'_ str, i32, RandomState>> for JJSON[src]

impl<'_> From<HashMap<String, &'_ str, RandomState>> for JJSON[src]

impl From<HashMap<String, String, RandomState>> for JJSON[src]

impl From<HashMap<String, bool, RandomState>> for JJSON[src]

impl From<HashMap<String, f64, RandomState>> for JJSON[src]

impl From<HashMap<String, i32, RandomState>> for JJSON[src]

impl From<JJSON> for HashMap<String, String>[src]

impl From<JJSON> for Vec<String>[src]

impl From<JJSON> for f64[src]

impl From<JJSON> for bool[src]

impl From<JJSON> for HashMap<String, i32>[src]

impl From<JJSON> for Vec<i32>[src]

impl From<JJSON> for HashMap<String, f64>[src]

impl From<JJSON> for Vec<f64>[src]

impl From<JJSON> for HashMap<String, bool>[src]

impl From<JJSON> for Vec<bool>[src]

impl From<JJSON> for String[src]

impl From<JJSON> for i32[src]

impl From<String> for JJSON[src]

impl<'_> From<Vec<&'_ str>> for JJSON[src]

impl From<Vec<JJSON>> for JJSON[src]

impl From<Vec<String>> for JJSON[src]

impl From<Vec<bool>> for JJSON[src]

impl From<Vec<f64>> for JJSON[src]

impl From<Vec<i32>> for JJSON[src]

impl From<bool> for JJSON[src]

impl From<f64> for JJSON[src]

impl From<i32> for JJSON[src]

impl PartialEq<JJSON> for JJSON[src]

impl StructuralPartialEq for JJSON[src]

Auto Trait Implementations

impl RefUnwindSafe for JJSON

impl Send for JJSON

impl Sync for JJSON

impl Unpin for JJSON

impl UnwindSafe for JJSON

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.