Skip to main content

Console

Trait Console 

Source
pub trait Console {
    // Required methods
    fn arguments<'valid>(&'valid self) -> &'valid [Argument];
    fn read(&self, filename: &str) -> Result<String, Issue>;
    fn sync(&self);
    fn problem(&self, threat: Threat);
    fn print<Type: Display>(&self, value: &Type);
}

Required Methods§

Source

fn arguments<'valid>(&'valid self) -> &'valid [Argument]

Source

fn read(&self, filename: &str) -> Result<String, Issue>

Source

fn sync(&self)

Source

fn problem(&self, threat: Threat)

Source

fn print<Type: Display>(&self, value: &Type)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§