[][src]Trait b0x::passes::PassSequence

pub trait PassSequence<'a> {
    type T: 'a;

    const TY_NAME: &'static str;
    const PASSES: &'a [Pass<'a, Self::T>];
    fn run(
        input: &Self::T,
        config: &Config
    ) -> Vec<(&'a str, Result<Vec<(&'a str, Info)>, ()>)> { ... } }

A sequence of passes. This is what runs for a given value.

Associated Types

type T: 'a

Type of the value that this sequence can give information about.

Loading content...

Associated Constants

const TY_NAME: &'static str

Name of T which will be displayed in the beginning of output via found TY_NAME(value).

const PASSES: &'a [Pass<'a, Self::T>]

Passes which this sequence consists of.

Loading content...

Provided methods

fn run(
    input: &Self::T,
    config: &Config
) -> Vec<(&'a str, Result<Vec<(&'a str, Info)>, ()>)>

Runs all passes in the sequence that are not ignored and returns the combined result.

Loading content...

Implementors

impl<'a> PassSequence<'a> for IntegerPasses[src]

type T = u128

fn run(
    input: &Self::T,
    config: &Config
) -> Vec<(&'a str, Result<Vec<(&'a str, Info)>, ()>)>
[src]

impl<'a> PassSequence<'a> for IpAddrPasses[src]

type T = IpAddr

fn run(
    input: &Self::T,
    config: &Config
) -> Vec<(&'a str, Result<Vec<(&'a str, Info)>, ()>)>
[src]

impl<'a> PassSequence<'a> for StringPasses[src]

type T = String

fn run(
    input: &Self::T,
    config: &Config
) -> Vec<(&'a str, Result<Vec<(&'a str, Info)>, ()>)>
[src]

Loading content...