Struct gag::Hold [] [src]

pub struct Hold { /* fields omitted */ }

Hold output until dropped. On drop, the held output is sent to the stdout/stderr.

Note: This will ignore IO errors when printing held output.

Methods

impl Hold
[src]

Hold stderr output.

Hold stdout output.

Trait Implementations

impl Drop for Hold
[src]

A method called when the value goes out of scope. Read more