pub trait ExtWrite<'a>: Write {
type LockWrite: Write + 'a;
fn lock(&'a self) -> Self::LockWrite;
fn lock_fn<F: FnMut(Self::LockWrite) -> R, R>(&'a self, f: F) -> R { ... }
}
Expand description
The trait extends the capabilities of the standard Write.
Required Associated Types
Required Methods
Provided Methods
Implementations on Foreign Types
sourceimpl<'a> ExtWrite<'a> for Stdout
impl<'a> ExtWrite<'a> for Stdout
type LockWrite = StdoutLock<'a>
fn lock(&'a self) -> Self::LockWrite
sourceimpl<'a> ExtWrite<'a> for Stderr
impl<'a> ExtWrite<'a> for Stderr
type LockWrite = StderrLock<'a>
fn lock(&'a self) -> Self::LockWrite
sourceimpl<'a, 'l, L: ExtWrite<'a, LockWrite = W>, W: 'a + Write> ExtWrite<'a> for &'l Lwhere
Self: Write,
impl<'a, 'l, L: ExtWrite<'a, LockWrite = W>, W: 'a + Write> ExtWrite<'a> for &'l Lwhere
Self: Write,
The trait extends the capabilities of the standard Write.
sourceimpl<'a, 'l, L: ExtWrite<'a, LockWrite = W> + Write, W: 'a + Write> ExtWrite<'a> for &'l mut Lwhere
Self: Write,
impl<'a, 'l, L: ExtWrite<'a, LockWrite = W> + Write, W: 'a + Write> ExtWrite<'a> for &'l mut Lwhere
Self: Write,
The trait extends the capabilities of the standard Write.