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§
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".