[−][src]Struct hime_redist::ast::AstNode
Represents a node in an Abstract Syntax Tree
Implementations
impl<'a> AstNode<'a>
[src]
pub fn id(&self) -> usize
[src]
Gets the identifier of this node
pub fn get_token_index(&self) -> Option<usize>
[src]
Gets the index of the token born by this node, if any
pub fn parent(&self) -> Option<AstNode>
[src]
Gets the parent of this node, if any
pub fn children(&self) -> AstFamily
[src]
Gets the children of this node
Trait Implementations
impl<'a> Clone for AstNode<'a>
[src]
impl<'a> Display for AstNode<'a>
[src]
impl<'a> SemanticElementTrait for AstNode<'a>
[src]
fn get_position(&self) -> Option<TextPosition>
[src]
Gets the position in the input text of this element
fn get_span(&self) -> Option<TextSpan>
[src]
Gets the span in the input text of this element
fn get_context(&self) -> Option<TextContext>
[src]
Gets the context of this element in the input
fn get_symbol(&self) -> Symbol
[src]
Gets the grammar symbol associated to this element
fn get_value(&self) -> Option<String>
[src]
Gets the value of this element, if any
Auto Trait Implementations
impl<'a> RefUnwindSafe for AstNode<'a>
impl<'a> Send for AstNode<'a>
impl<'a> Sync for AstNode<'a>
impl<'a> Unpin for AstNode<'a>
impl<'a> UnwindSafe for AstNode<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,