Skip to main content

Phase

Trait Phase 

Source
pub trait Phase {
    // Required method
    fn apply(&self, items: &mut Vec<Item>);
}
Expand description

A Rust phase that operates on the AST.

Required Methods§

Source

fn apply(&self, items: &mut Vec<Item>)

Apply the phase on items. A phase may transform an item into zero, one or more items.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Phase for LegacyOCamlPhase

Source§

impl Phase for PhaseKind

Source§

impl<B: Backend> Phase for B

A backend can be interpreted as a phase