Struct swc_common::errors::emitter::EmitterWriter
source · [−]pub struct EmitterWriter { /* private fields */ }
Expand description
Implementation of Emitter which pretty-prints the errors.
Implementations
pub fn stderr(
color_config: ColorConfig,
source_map: Option<Lrc<SourceMapperDyn>>,
short_message: bool,
teach: bool
) -> EmitterWriter
This is supported on crate feature
tty-emitter
only.pub fn new(
dst: Box<dyn Write + Send>,
source_map: Option<Lrc<SourceMapperDyn>>,
short_message: bool,
teach: bool
) -> EmitterWriter
Trait Implementations
Emit a structured diagnostic.
Check if should show explanations about “rustc –explain”
Auto Trait Implementations
impl !RefUnwindSafe for EmitterWriter
impl Send for EmitterWriter
impl !Sync for EmitterWriter
impl Unpin for EmitterWriter
impl !UnwindSafe for EmitterWriter
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more