Skip to main content

Console

Trait Console 

Source
pub trait Console {
    // Required methods
    fn arguments() -> &'static [Argument];
    fn open(filename: &str) -> Result<impl Descriptor, Issue>;
    fn problem(issue: Issue, chain: &[&'static str]) -> impl Update;
    fn print(value: impl Display) -> impl Update;
    fn debug(value: impl Debug) -> impl Update;
}

Required Methods§

Source

fn arguments() -> &'static [Argument]

Source

fn open(filename: &str) -> Result<impl Descriptor, Issue>

Source

fn problem(issue: Issue, chain: &[&'static str]) -> impl Update

Source

fn print(value: impl Display) -> impl Update

Source

fn debug(value: impl Debug) -> impl Update

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§