Struct arc_rs::AST[][src]

pub struct AST {
    pub kind: ASTKind,
    pub range: Option<TextRange>,
    pub additional: Option<String>,
}

AST tree for arc

Fields

kind: ASTKind

AST data

range: Option<TextRange>

1-indexed start to end position

additional: Option<String>

Whitespace, Newline, Comment

Implementations

impl AST[src]

pub fn set_additional(&mut self, info: impl Into<String>)[src]

pub fn set_range(&mut self, range: TextRange)[src]

impl AST[src]

pub fn program(children: Vec<AST>) -> Self[src]

pub fn block(children: Vec<AST>) -> Self[src]

pub fn null() -> Self[src]

pub fn boolean(value: bool) -> Self[src]

pub fn string(value: Text) -> Self[src]

pub fn integer(value: &str) -> Self[src]

pub fn number(value: &str) -> Self[src]

pub fn namespace(value: Vec<AST>) -> Self[src]

pub fn list(value: Vec<AST>) -> Self[src]

pub fn dict(pairs: Vec<AST>) -> Self[src]

pub fn pair(lhs: AST, rhs: AST) -> Self[src]

Trait Implementations

impl Clone for AST[src]

impl Debug for AST[src]

impl Default for AST[src]

impl Eq for AST[src]

impl From<AST> for Value[src]

impl PartialEq<AST> for AST[src]

impl StructuralEq 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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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.