pub enum AnyWriter {
Text(Box<dyn Writer>),
Bytes(Box<dyn BytesWriter>),
}Expand description
A resolved writer, either text-shaped (Writer) or byte-shaped (BytesWriter).
Variants§
Text(Box<dyn Writer>)
A text-shaped writer; rendering produces a string.
Bytes(Box<dyn BytesWriter>)
A byte-shaped writer; rendering produces raw bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AnyWriter
impl !Send for AnyWriter
impl !Sync for AnyWriter
impl !UnwindSafe for AnyWriter
impl Freeze for AnyWriter
impl Unpin for AnyWriter
impl UnsafeUnpin for AnyWriter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more