twiggy_traits

Trait Analyze

Source
pub trait Analyze {
    type Data: Emit;

    // Required method
    fn analyze(items: &mut Items) -> Result<Self::Data, Error>;
}
Expand description

An analysis takes our IR and returns some kind of data results that can be emitted.

Required Associated Types§

Source

type Data: Emit

The resulting data from this analysis.

Required Methods§

Source

fn analyze(items: &mut Items) -> Result<Self::Data, Error>

Run this analysis on the given IR items.

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.

Implementors§