Skip to main content

Stdout

Trait Stdout 

Source
pub trait Stdout {
    type Output: Read + Write;

    // Required methods
    fn stdout(&self) -> &Self::Output;
    fn stdout_mut(&mut self) -> &mut Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn stdout(&self) -> &Self::Output

Source

fn stdout_mut(&mut self) -> &mut Self::Output

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§