[][src]Enum jsona::Ast

pub enum Ast {
    Null(Null),
    Boolean(Boolean),
    Integer(Integer),
    Float(Float),
    String(String),
    Array(Array),
    Object(Object),
}

Variants

Null(Null)
Boolean(Boolean)
Integer(Integer)
Float(Float)
String(String)
Array(Array)
Object(Object)

Implementations

impl Ast[src]

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

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

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

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

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

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

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

pub fn as_boolean(&self) -> Option<&Boolean>[src]

pub fn as_integer(&self) -> Option<&Integer>[src]

pub fn as_float(&self) -> Option<&Float>[src]

pub fn as_string(&self) -> Option<&String>[src]

pub fn as_array(&self) -> Option<&Array>[src]

pub fn as_object(&self) -> Option<&Object>[src]

pub fn key(&self, key: &str) -> Option<&Self>[src]

pub fn retrive(&self, path: &[&str]) -> Option<&Self>[src]

pub fn get_position(&self) -> &Position[src]

pub fn get_annotations(&self) -> &Vec<Annotation>[src]

pub fn get_annotations_mut(&mut self) -> &mut Vec<Annotation>[src]

Trait Implementations

impl Debug for Ast[src]

impl<'de> Deserialize<'de> for Ast[src]

impl<'_> From<&'_ Ast> for Value[src]

impl From<Ast> for Value[src]

impl PartialEq<Ast> for Ast[src]

impl Serialize for Ast[src]

impl StructuralPartialEq for Ast[src]

Auto Trait Implementations

impl RefUnwindSafe for Ast

impl Send for Ast

impl Sync for Ast

impl Unpin for Ast

impl UnwindSafe for Ast

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.