Trait Reporter

Source
pub trait Reporter<P: Package, VS: VersionSet, M: Eq + Clone + Debug + Display> {
    type Output;

    // Required methods
    fn report(derivation_tree: &DerivationTree<P, VS, M>) -> Self::Output;
    fn report_with_formatter(
        derivation_tree: &DerivationTree<P, VS, M>,
        formatter: &impl ReportFormatter<P, VS, M, Output = Self::Output>,
    ) -> Self::Output;
}
Expand description

Reporter trait.

Required Associated Types§

Source

type Output

Output type of the report.

Required Methods§

Source

fn report(derivation_tree: &DerivationTree<P, VS, M>) -> Self::Output

Generate a report from the derivation tree describing the resolution failure using the default formatter.

Source

fn report_with_formatter( derivation_tree: &DerivationTree<P, VS, M>, formatter: &impl ReportFormatter<P, VS, M, Output = Self::Output>, ) -> Self::Output

Generate a report from the derivation tree describing the resolution failure using a custom formatter.

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§