[][src]Struct linefeed::writer::Writer

pub struct Writer<'a, 'b: 'a, Term: 'b + Terminal> { /* fields omitted */ }

Provides an interface to write line-by-line output to the terminal device.

Holds a lock on terminal write operations. See Interface for more information about concurrent operations.

An instance of this type can be constructed using either the Interface::lock_writer_append or the Interface::lock_writer_erase method.

Methods

impl<'a, 'b: 'a, Term: 'b + Terminal> Writer<'a, 'b, Term>[src]

Important traits for HistoryIter<'a>
pub fn history(&self) -> HistoryIter[src]

Returns an iterator over history entries.

pub fn write_str(&mut self, s: &str) -> Result<()>[src]

Writes some text to the terminal device.

Before the Writer is dropped, any output written should be followed by a newline. A newline is automatically written if the writeln! macro is used.

pub fn write_fmt(&mut self, args: Arguments) -> Result<()>[src]

Writes formatted text to the terminal display.

This method enables Interface to be used as the receiver to the writeln! macro.

If the text contains any unprintable characters (e.g. escape sequences), those characters will be escaped before printing.

Trait Implementations

impl<'a, 'b: 'a, Term: 'b + Terminal> Drop for Writer<'a, 'b, Term>[src]

Auto Trait Implementations

impl<'a, 'b, Term> !Send for Writer<'a, 'b, Term>

impl<'a, 'b, Term> !Sync for Writer<'a, 'b, Term>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.