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
Default(ColorConfig)
AnnotateSnippet(ColorConfig)
Short(ColorConfig)
Implementations
sourceimpl 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
) -> EmitterWriter
Trait Implementations
sourceimpl Clone for HumanReadableErrorType
impl Clone for HumanReadableErrorType
sourcefn clone(&self) -> HumanReadableErrorType
fn clone(&self) -> HumanReadableErrorType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for HumanReadableErrorType
impl Debug for HumanReadableErrorType
sourceimpl PartialEq<HumanReadableErrorType> for HumanReadableErrorType
impl PartialEq<HumanReadableErrorType> for HumanReadableErrorType
sourcefn 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
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: 2 bytes
Size for each variant:
Default
: 1 byteAnnotateSnippet
: 1 byteShort
: 1 byte