[−][src]Enum parser::visitor::NodeKind
Variants
AST(&'a AST<'t>)Program(&'a Spanned<'t, Program<'t>>)ClassDeclaration(&'a Spanned<'t, ClassDeclaration<'t>>)ClassMember(&'a Spanned<'t, ClassMember<'t>>)Parameter(&'a Spanned<'t, Parameter<'t>>)ParameterList(&'a Spanned<'t, ParameterList<'t>>)Type(&'a Spanned<'t, Type<'t>>)BasicType(&'a Spanned<'t, BasicType<'t>>)Block(&'a Spanned<'t, Block<'t>>)Stmt(&'a Spanned<'t, Stmt<'t>>)Expr(&'a Spanned<'t, Expr<'t>>)BinaryOp(&'a BinaryOp)UnaryOp(&'a UnaryOp)Methods
impl<'a, 't> NodeKind<'a, 't>[src]
impl<'a, 't> NodeKind<'a, 't>pub fn for_each_child<R>(
&self,
cb: &mut dyn FnMut(NodeKind<'a, 't>) -> R
) -> Option<R> where
R: VisitResult, [src]
pub fn for_each_child<R>(
&self,
cb: &mut dyn FnMut(NodeKind<'a, 't>) -> R
) -> Option<R> where
R: VisitResult, Visit the children of self, invoking cb on each.
If self has no children, this method returns None, otherwiseSome(res)whereresis the return value ofcb`.
Trait Implementations
impl<'a, 't> From<NodeKind<'a, 't>> for NodeKindDiscriminants[src]
impl<'a, 't> From<NodeKind<'a, 't>> for NodeKindDiscriminantsfn from(val: NodeKind<'a, 't>) -> NodeKindDiscriminants[src]
fn from(val: NodeKind<'a, 't>) -> NodeKindDiscriminantsimpl<'a, 't, '_enum> From<&'_enum NodeKind<'a, 't>> for NodeKindDiscriminants[src]
impl<'a, 't, '_enum> From<&'_enum NodeKind<'a, 't>> for NodeKindDiscriminantsfn from(val: &'_enum NodeKind<'a, 't>) -> NodeKindDiscriminants[src]
fn from(val: &'_enum NodeKind<'a, 't>) -> NodeKindDiscriminantsimpl<'a, 'f> From<&'a AST<'f>> for NodeKind<'a, 'f>[src]
impl<'a, 'f> From<&'a AST<'f>> for NodeKind<'a, 'f>impl<'a, 'f> From<&'a Spanned<'f, Program<'f>>> for NodeKind<'a, 'f>[src]
impl<'a, 'f> From<&'a Spanned<'f, Program<'f>>> for NodeKind<'a, 'f>impl<'a, 'f> From<&'a Spanned<'f, ClassDeclaration<'f>>> for NodeKind<'a, 'f>[src]
impl<'a, 'f> From<&'a Spanned<'f, ClassDeclaration<'f>>> for NodeKind<'a, 'f>fn from(a: &'a Spanned<'f, ClassDeclaration<'f>>) -> Self[src]
fn from(a: &'a Spanned<'f, ClassDeclaration<'f>>) -> Selfimpl<'a, 'f> From<&'a Spanned<'f, ClassMember<'f>>> for NodeKind<'a, 'f>[src]
impl<'a, 'f> From<&'a Spanned<'f, ClassMember<'f>>> for NodeKind<'a, 'f>fn from(a: &'a Spanned<'f, ClassMember<'f>>) -> Self[src]
fn from(a: &'a Spanned<'f, ClassMember<'f>>) -> Selfimpl<'a, 'f> From<&'a Spanned<'f, Parameter<'f>>> for NodeKind<'a, 'f>[src]
impl<'a, 'f> From<&'a Spanned<'f, Parameter<'f>>> for NodeKind<'a, 'f>impl<'a, 'f> From<&'a Spanned<'f, Vec<Spanned<'f, Parameter<'f>>>>> for NodeKind<'a, 'f>[src]
impl<'a, 'f> From<&'a Spanned<'f, Vec<Spanned<'f, Parameter<'f>>>>> for NodeKind<'a, 'f>fn from(a: &'a Spanned<'f, ParameterList<'f>>) -> Self[src]
fn from(a: &'a Spanned<'f, ParameterList<'f>>) -> Selfimpl<'a, 'f> From<&'a Spanned<'f, Type<'f>>> for NodeKind<'a, 'f>[src]
impl<'a, 'f> From<&'a Spanned<'f, Type<'f>>> for NodeKind<'a, 'f>impl<'a, 'f> From<&'a Spanned<'f, BasicType<'f>>> for NodeKind<'a, 'f>[src]
impl<'a, 'f> From<&'a Spanned<'f, BasicType<'f>>> for NodeKind<'a, 'f>impl<'a, 'f> From<&'a Spanned<'f, Block<'f>>> for NodeKind<'a, 'f>[src]
impl<'a, 'f> From<&'a Spanned<'f, Block<'f>>> for NodeKind<'a, 'f>impl<'a, 'f> From<&'a Spanned<'f, Stmt<'f>>> for NodeKind<'a, 'f>[src]
impl<'a, 'f> From<&'a Spanned<'f, Stmt<'f>>> for NodeKind<'a, 'f>impl<'a, 'f> From<&'a Spanned<'f, Expr<'f>>> for NodeKind<'a, 'f>[src]
impl<'a, 'f> From<&'a Spanned<'f, Expr<'f>>> for NodeKind<'a, 'f>impl<'a, 'f> From<&'a BinaryOp> for NodeKind<'a, 'f>[src]
impl<'a, 'f> From<&'a BinaryOp> for NodeKind<'a, 'f>impl<'a, 'f> From<&'a UnaryOp> for NodeKind<'a, 'f>[src]
impl<'a, 'f> From<&'a UnaryOp> for NodeKind<'a, 'f>impl<'_, '_> Debug for NodeKind<'_, '_>[src]
impl<'_, '_> Debug for NodeKind<'_, '_>Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId