Trait Macro

Source
pub trait Macro {
    type Error: Into<ReportMessage>;
    type Node: TryFrom<AnyNode>;

    // Provided method
    fn transform(
        &mut self,
        guard: VisitGuard<'_, '_, Self::Node>,
        context: &mut impl Context,
    ) -> Execution<Self::Error, ChangeSet> { ... }
}

Required Associated Types§

Provided Methods§

Source

fn transform( &mut self, guard: VisitGuard<'_, '_, Self::Node>, context: &mut impl Context, ) -> Execution<Self::Error, ChangeSet>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<M: Macro> Macro for &mut M

Source§

type Error = <M as Macro>::Error

Source§

type Node = <M as Macro>::Node

Source§

fn transform( &mut self, guard: VisitGuard<'_, '_, Self::Node>, context: &mut impl Context, ) -> Execution<Self::Error, ChangeSet>

Implementors§