Enum dochy_json5::jval::JVal[][src]

pub enum JVal {
    Null(Span),
    Undefined(Span),
    Bool(boolSpan),
    String(StringSpan),
    Int(i64Span),
    Double(f64Span),
    Array(Vec<JVal>, Span),
    Map(LinkedHashMap<String, JVal>, Span),
}

Variants

Null(Span)
Undefined(Span)
Bool(boolSpan)
String(StringSpan)
Int(i64Span)
Double(f64Span)
Array(Vec<JVal>, Span)

Implementations

impl JVal[src]

pub fn as_object(&self) -> Option<&LinkedHashMap<String, JVal>>[src]

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

pub fn as_str(&self) -> Option<&str>[src]

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

pub fn as_int(&self) -> Option<i64>[src]

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

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

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

pub fn span(&self) -> &Span[src]

pub fn slice(&self) -> &str[src]

pub fn line_str(&self) -> String[src]

くっそ重いので正常系で実行しないように注意

Trait Implementations

impl Clone for JVal[src]

impl Debug for JVal[src]

impl PartialEq<JVal> for JVal[src]

impl StructuralPartialEq for JVal[src]

Auto Trait Implementations

impl !RefUnwindSafe for JVal

impl !Send for JVal

impl !Sync for JVal

impl Unpin for JVal

impl !UnwindSafe for JVal

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.