Skip to main content

TraceDisplay

Trait TraceDisplay 

Source
pub trait TraceDisplay {
    // Required methods
    fn line(
        &mut self,
        _: &CheckLog,
        indent: Indent,
    ) -> Result<ControlFlow<()>, Error>;
    fn task(
        &mut self,
        task: CheckingTask<'_>,
        context: &[ComponentVar],
        success: bool,
    ) -> Result<(), Error>;
    fn strategy(
        &mut self,
        name: &str,
        context: &[ComponentVar],
        success: bool,
    ) -> Result<(), Error>;
    fn uri(
        &mut self,
        uri: UriRef<'_>,
        lvl: Option<MessageLevel>,
    ) -> Result<(), Error>;
    fn term(
        &mut self,
        term: &Term,
        lvl: Option<MessageLevel>,
    ) -> Result<(), Error>;
    fn string(
        &mut self,
        s: &str,
        lvl: Option<MessageLevel>,
    ) -> Result<(), Error>;
    fn variable(
        &mut self,
        var: &Variable,
        lvl: Option<MessageLevel>,
    ) -> Result<(), Error>;
    fn num(&mut self, num: i128, lvl: Option<MessageLevel>) -> Result<(), Error>;
    fn indent(
        &mut self,
        indent: Indent,
        lvl: Option<MessageLevel>,
    ) -> Result<(), Error>;
    fn space(&mut self) -> Result<(), Error>;

    // Provided method
    fn displayable(
        &mut self,
        d: &Displayable,
        lvl: Option<MessageLevel>,
    ) -> Result<(), Error> { ... }
}

Required Methodsยง

Source

fn line( &mut self, _: &CheckLog, indent: Indent, ) -> Result<ControlFlow<()>, Error>

ยงErrors
Source

fn task( &mut self, task: CheckingTask<'_>, context: &[ComponentVar], success: bool, ) -> Result<(), Error>

ยงErrors
Source

fn strategy( &mut self, name: &str, context: &[ComponentVar], success: bool, ) -> Result<(), Error>

ยงErrors
Source

fn uri( &mut self, uri: UriRef<'_>, lvl: Option<MessageLevel>, ) -> Result<(), Error>

ยงErrors
Source

fn term(&mut self, term: &Term, lvl: Option<MessageLevel>) -> Result<(), Error>

ยงErrors
Source

fn string(&mut self, s: &str, lvl: Option<MessageLevel>) -> Result<(), Error>

ยงErrors
Source

fn variable( &mut self, var: &Variable, lvl: Option<MessageLevel>, ) -> Result<(), Error>

ยงErrors
Source

fn num(&mut self, num: i128, lvl: Option<MessageLevel>) -> Result<(), Error>

ยงErrors
Source

fn indent( &mut self, indent: Indent, lvl: Option<MessageLevel>, ) -> Result<(), Error>

ยงErrors
Source

fn space(&mut self) -> Result<(), Error>

ยงErrors

Provided Methodsยง

Source

fn displayable( &mut self, d: &Displayable, lvl: Option<MessageLevel>, ) -> Result<(), Error>

ยงErrors

Implementations on Foreign Typesยง

Sourceยง

impl TraceDisplay for &mut Formatter<'_>

Available on crate feature full only.
Sourceยง

fn line( &mut self, _: &CheckLog, indent: Indent, ) -> Result<ControlFlow<()>, Error>

Sourceยง

fn space(&mut self) -> Result<(), Error>

Sourceยง

fn strategy( &mut self, name: &str, _: &[ComponentVar], _: bool, ) -> Result<(), Error>

Sourceยง

fn task( &mut self, task: CheckingTask<'_>, context: &[ComponentVar], success: bool, ) -> Result<(), Error>

Sourceยง

fn uri(&mut self, uri: UriRef<'_>, _: Option<MessageLevel>) -> Result<(), Error>

Sourceยง

fn indent( &mut self, indent: Indent, _: Option<MessageLevel>, ) -> Result<(), Error>

Sourceยง

fn term(&mut self, term: &Term, _: Option<MessageLevel>) -> Result<(), Error>

Sourceยง

fn string(&mut self, s: &str, _: Option<MessageLevel>) -> Result<(), Error>

Sourceยง

fn variable( &mut self, var: &Variable, _: Option<MessageLevel>, ) -> Result<(), Error>

Sourceยง

fn num(&mut self, num: i128, _: Option<MessageLevel>) -> Result<(), Error>

Implementorsยง

Sourceยง

impl TraceDisplay for ColorDisplay<'_, '_>

Available on crate feature colors only.