[][src]Trait twiggy_traits::Analyze

pub trait Analyze {
    type Data: Emit;
    fn analyze(items: &mut Items) -> Result<Self::Data, Error>;
}

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

Associated Types

type Data: Emit

The resulting data from this analysis.

Loading content...

Required methods

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

Run this analysis on the given IR items.

Loading content...

Implementors

Loading content...