[−][src]Struct linefeed::writer::Writer
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
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,