[][src]Struct loa::syntax::Tree

pub struct Tree {
    pub source: Arc<Source>,
    // some fields omitted
}

Fields

source: Arc<Source>

Methods

impl Tree[src]

pub fn new(source: Arc<Source>) -> Tree[src]

pub fn get(&self, id: Id) -> Option<Node>[src]

pub fn borrow(&self, id: Id) -> Option<&Node>[src]

pub fn get_mut(&mut self, id: Id) -> Option<&mut Node>[src]

pub fn add(&mut self, node: Node)[src]

pub fn root(&self) -> Option<&Node>[src]

pub fn nodes_around(
    &self,
    location: Location
) -> (Option<&Node>, Option<&Node>, Option<&Node>)
[src]

pub fn node_at(&self, location: Location) -> Option<&Node>[src]

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

pub fn end_of_import_list_location(&self) -> Location[src]

Trait Implementations

impl Debug for Tree[src]

impl Display for Tree[src]

Auto Trait Implementations

impl RefUnwindSafe for Tree

impl Send for Tree

impl Sync for Tree

impl Unpin for Tree

impl UnwindSafe for Tree

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> 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.