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 WriteColor + Send>, fallback_bundle: LazyFallbackBundle ) -> 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
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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
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