Enum rustc_errors::emitter::Destination
source · [−]pub enum Destination {
Terminal(StandardStream),
Buffered(BufferWriter),
Raw(Box<dyn Write + Send>, bool),
}
Variants
Terminal(StandardStream)
Buffered(BufferWriter)
Raw(Box<dyn Write + Send>, bool)
Implementations
sourceimpl Destination
impl Destination
fn from_stderr(color: ColorConfig) -> Destination
fn writable(&mut self) -> WritableDst<'_>ⓘNotable traits for WritableDst<'a>impl<'a> Write for WritableDst<'a>
fn supports_color(&self) -> bool
Auto Trait Implementations
impl !RefUnwindSafe for Destination
impl Send for Destination
impl !Sync for Destination
impl Unpin for Destination
impl !UnwindSafe for Destination
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 80 bytes
Size for each variant:
Terminal
: 64 bytesBuffered
: 80 bytesRaw
: 32 bytes