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 problem(&self, threat: Threat) -> impl Handle;
    fn print<Type: Display>(&self, value: Type) -> impl Handle;
    fn debug<Type: Debug>(&self, value: Type) -> impl Handle;
}

Required Methods§

Source

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

Source

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

Source

fn problem(&self, threat: Threat) -> impl Handle

Source

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

Source

fn debug<Type: Debug>(&self, value: Type) -> impl Handle

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§