Enum rustc_session::config::ErrorOutputType
source · pub enum ErrorOutputType {
HumanReadable(HumanReadableErrorType),
Json {
pretty: bool,
json_rendered: HumanReadableErrorType,
},
}
Expand description
The type of diagnostics output to generate.
Variants§
HumanReadable(HumanReadableErrorType)
Output meant for the consumption of humans.
Json
Fields
§
json_rendered: HumanReadableErrorType
The JSON output includes a rendered
field that includes the rendered
human output.
Output that’s consumed by other tools such as rustfix
or the RLS
.
Trait Implementations§
source§impl Clone for ErrorOutputType
impl Clone for ErrorOutputType
source§fn clone(&self) -> ErrorOutputType
fn clone(&self) -> ErrorOutputType
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 ErrorOutputType
impl Debug for ErrorOutputType
source§impl Default for ErrorOutputType
impl Default for ErrorOutputType
source§impl PartialEq<ErrorOutputType> for ErrorOutputType
impl PartialEq<ErrorOutputType> for ErrorOutputType
source§fn eq(&self, other: &ErrorOutputType) -> bool
fn eq(&self, other: &ErrorOutputType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ErrorOutputType
impl Eq for ErrorOutputType
impl StructuralEq for ErrorOutputType
impl StructuralPartialEq for ErrorOutputType
Auto Trait Implementations§
impl RefUnwindSafe for ErrorOutputType
impl Send for ErrorOutputType
impl Sync for ErrorOutputType
impl Unpin for ErrorOutputType
impl UnwindSafe for ErrorOutputType
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: 3 bytes
Size for each variant:
HumanReadable
: 3 bytesJson
: 3 bytes