Enum json_flex::JFObject [] [src]

pub enum JFObject {
    String(String),
    Integer(i64),
    Float(f64),
    Dictionary(HashMap<StringJFObject>),
    Array(Vec<JFObject>),
    Null,
    False,
    True,
}

Variants

String(String)Integer(i64)Float(f64)Dictionary(HashMap<StringJFObject>)Array(Vec<JFObject>)NullFalseTrue

Methods

impl JFObject
[src]

fn into_string(&self) -> Option<&String>

fn into_i64(&self) -> Option<&i64>

fn into_f64(&self) -> Option<&f64>

fn into_hashmap(&self) -> Option<&HashMap<StringJFObject>>

fn into_vec(&self) -> Option<&Vec<JFObject>>

fn is_null(&self) -> bool

fn is_true(&self) -> bool

fn is_false(&self) -> bool

fn is_array(&self) -> bool

fn is_dictionary(&self) -> bool

fn is_string(&self) -> bool

fn is_integer(&self) -> bool

fn is_float(&self) -> bool

fn unwrap_string(&self) -> &String

fn unwrap_i64(&self) -> &i64

fn unwrap_f64(&self) -> &f64

fn unwrap_hashmap(&self) -> &HashMap<StringJFObject>

fn unwrap_vec(&self) -> &Vec<JFObject>

Trait Implementations

impl Clone for JFObject
[src]

fn clone(&self) -> JFObject

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for JFObject
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Decodable for JFObject
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<JFObject, __D::Error>

impl Unwrap<String> for JFObject
[src]

fn unwrap(self) -> String

impl Unwrap<i64> for JFObject
[src]

fn unwrap(self) -> i64

impl Unwrap<f64> for JFObject
[src]

fn unwrap(self) -> f64

impl Unwrap<HashMap<StringJFObject>> for JFObject
[src]

fn unwrap(self) -> HashMap<StringJFObject>

impl Unwrap<Vec<JFObject>> for JFObject
[src]

fn unwrap(self) -> Vec<JFObject>

impl Index<usize> for JFObject
[src]

type Output = JFObject

The returned type after indexing

fn index<'a>(&'a self, id: usize) -> &'a Self::Output

The method for the indexing (Foo[Bar]) operation

impl Index<String> for JFObject
[src]

type Output = JFObject

The returned type after indexing

fn index<'a>(&'a self, id: String) -> &'a Self::Output

The method for the indexing (Foo[Bar]) operation

impl<'a> Index<&'a str> for JFObject
[src]

type Output = JFObject

The returned type after indexing

fn index<'b>(&'b self, id: &str) -> &'b Self::Output

The method for the indexing (Foo[Bar]) operation