pub struct ValkyrieProgramParser { /* private fields */ }

Implementations§

Trait Implementations§

source§

impl Clone for ValkyrieProgramParser

source§

fn clone(&self) -> ValkyrieProgramParser

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ValkyrieProgramParser

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ValkyrieProgramParser

source§

fn default() -> ValkyrieProgramParser

Returns the “default value” for a type. Read more
source§

impl ParseTreeVisitorCompat<'_> for ValkyrieProgramParser

§

type Node = ValkyrieAntlrParserContextType

§

type Return = ()

source§

fn temp_result(&mut self) -> &mut Self::Return

Temporary storage for ParseTreeVisitor blanket implementation to work Read more
source§

fn visit( &mut self, node: &<Self::Node as ParserNodeType<'_>>::Type ) -> Self::Return

source§

fn visit_terminal( &mut self, _node: &LeafNode<'input, Self::Node, NoError> ) -> Self::Return

Called on terminal(leaf) node
source§

fn visit_error_node( &mut self, _node: &LeafNode<'input, Self::Node, IsError> ) -> Self::Return

Called on error node
source§

fn visit_children( &mut self, node: &<Self::Node as ParserNodeType<'input>>::Type ) -> Self::Return

source§

fn aggregate_results( &self, aggregate: Self::Return, next: Self::Return ) -> Self::Return

source§

fn should_visit_next_child( &self, node: &<Self::Node as ParserNodeType<'input>>::Type, current: &Self::Return ) -> bool

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> AnyExt for Twhere T: Any + ?Sized,

§

fn downcast_ref<T>(this: &Self) -> Option<&T>where T: Any,

Attempts to downcast this to T behind reference
§

fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where T: Any,

Attempts to downcast this to T behind mutable reference
§

fn downcast_rc<T>( this: Rc<Self, Global> ) -> Result<Rc<T, Global>, Rc<Self, Global>>where T: Any,

Attempts to downcast this to T behind Rc pointer
§

fn downcast_arc<T>( this: Arc<Self, Global> ) -> Result<Arc<T, Global>, Arc<Self, Global>>where T: Any,

Attempts to downcast this to T behind Arc pointer
§

fn downcast_box<T>( this: Box<Self, Global> ) -> Result<Box<T, Global>, Box<Self, Global>>where T: Any,

Attempts to downcast this to T behind Box pointer
§

fn downcast_move<T>(this: Self) -> Option<T>where T: Any, Self: Sized,

Attempts to downcast owned Self to T, useful only in generic context as a workaround for specialization
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, X> CoerceTo<T> for Xwhere T: CoerceFrom<X> + ?Sized,

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.