Struct term_snip::TermSnip [−][src]
pub struct TermSnip { /* fields omitted */ }Representation of a terminal.
Implementations
impl TermSnip[src]
impl TermSnip[src]pub fn new(limit: usize) -> TermSnip[src]
Creates a TermSnip wich limits output lines to the given limit.
Example
let mut term = TermSnip::new(5);
pub fn write_line(&mut self, text: &str) -> Result<()>[src]
Writes a line to the terminal (stdout).
pub fn clear_lines(&mut self) -> Result<()>[src]
Clear the lines written with the TermSnip instance
Auto Trait Implementations
impl RefUnwindSafe for TermSnip
impl RefUnwindSafe for TermSnipimpl UnwindSafe for TermSnip
impl UnwindSafe for TermSnip