pub enum HumanReadableErrorType {
Default(ColorConfig),
AnnotateSnippet(ColorConfig),
Short(ColorConfig),
}
Expand description
Describes the way the content of the rendered
field of the json output is generated
Variants§
Implementations§
source§impl HumanReadableErrorType
impl HumanReadableErrorType
sourcepub fn unzip(self) -> (bool, ColorConfig)
pub fn unzip(self) -> (bool, ColorConfig)
Returns a (short
, color
) tuple
pub fn new_emitter(
self,
dst: Box<dyn Write + Send>,
source_map: Option<Lrc<SourceMap>>,
bundle: Option<Lrc<FluentBundle>>,
fallback_bundle: LazyFallbackBundle,
teach: bool,
diagnostic_width: Option<usize>,
macro_backtrace: bool,
track_diagnostics: bool
) -> EmitterWriter
Trait Implementations§
source§impl Clone for HumanReadableErrorType
impl Clone for HumanReadableErrorType
source§fn clone(&self) -> HumanReadableErrorType
fn clone(&self) -> HumanReadableErrorType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HumanReadableErrorType
impl Debug for HumanReadableErrorType
source§impl PartialEq<HumanReadableErrorType> for HumanReadableErrorType
impl PartialEq<HumanReadableErrorType> for HumanReadableErrorType
source§fn eq(&self, other: &HumanReadableErrorType) -> bool
fn eq(&self, other: &HumanReadableErrorType) -> bool
impl Copy for HumanReadableErrorType
impl Eq for HumanReadableErrorType
impl StructuralEq for HumanReadableErrorType
impl StructuralPartialEq for HumanReadableErrorType
Auto Trait Implementations§
impl RefUnwindSafe for HumanReadableErrorType
impl Send for HumanReadableErrorType
impl Sync for HumanReadableErrorType
impl Unpin for HumanReadableErrorType
impl UnwindSafe for HumanReadableErrorType
Blanket Implementations§
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: 2 bytes
Size for each variant:
Default
: 1 byteAnnotateSnippet
: 1 byteShort
: 1 byte