[][src]Enum arc_rs::Arc

pub enum Arc {
    Null,
    Boolean(bool),
    Number(Number),
    String(String),
    Cite(Vec<String>),
    List(Vec<Arc>),
    Dict(HashMap<String, Arc, RandomState>),
    Macro,
}

Variants

Null
Boolean(bool)
Number(Number)
String(String)
Cite(Vec<String>)
List(Vec<Arc>)
Macro

Methods

impl Arc[src]

pub fn new() -> Arc[src]

pub fn new_dict() -> Arc[src]

pub fn new_list() -> Arc[src]

pub fn new_boolean(bool: bool) -> Arc[src]

pub fn new_string(_handler: &str, _data: &str) -> Arc[src]

pub fn new_number(handler: &str, data: &str) -> Arc[src]

pub fn new_cite(cite: Vec<String>) -> Arc[src]

impl Arc[src]

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

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

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

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

Trait Implementations

impl Clone for Arc[src]

impl Debug for Arc[src]

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

impl Display for Arc[src]

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

impl<T> From<Option<T>> for Arc where
    Arc: From<T>, 
[src]

impl From<String> for Arc[src]

impl From<bool> for Arc[src]

impl From<f32> for Arc[src]

impl From<f64> for Arc[src]

impl From<i128> for Arc[src]

impl From<i16> for Arc[src]

impl From<i32> for Arc[src]

impl From<i64> for Arc[src]

impl From<i8> for Arc[src]

impl From<u128> for Arc[src]

impl From<u16> for Arc[src]

impl From<u32> for Arc[src]

impl From<u64> for Arc[src]

impl From<u8> for Arc[src]

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

type Output = Arc

The returned type after indexing.

impl Index<String> for Arc[src]

type Output = Arc

The returned type after indexing.

impl Index<usize> for Arc[src]

type Output = Arc

The returned type after indexing.

impl PartialEq<Arc> for Arc[src]

impl Serialize for Arc[src]

impl StructuralPartialEq for Arc[src]

Auto Trait Implementations

impl RefUnwindSafe for Arc

impl Send for Arc

impl Sync for Arc

impl Unpin for Arc

impl UnwindSafe for Arc

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: Deserialize<'de>, 
[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> 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.