Struct syntax::json::JsonEmitter [−][src]
pub struct JsonEmitter { dst: Box<Write + Send>, registry: Option<Registry>, cm: Lrc<CodeMapper + Send + Sync>, pretty: bool, suggestion_applicability: bool, ui_testing: bool, }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Fields
dst: Box<Write + Send>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
registry: Option<Registry>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
cm: Lrc<CodeMapper + Send + Sync>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pretty: bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
suggestion_applicability: bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Whether "approximate suggestions" are enabled in the config
ui_testing: bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl JsonEmitter
[src]
impl JsonEmitter
pub fn stderr(
registry: Option<Registry>,
code_map: Lrc<CodeMap>,
pretty: bool,
suggestion_applicability: bool
) -> JsonEmitter
[src]
pub fn stderr(
registry: Option<Registry>,
code_map: Lrc<CodeMap>,
pretty: bool,
suggestion_applicability: bool
) -> JsonEmitter
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn basic(pretty: bool) -> JsonEmitter
[src]
pub fn basic(pretty: bool) -> JsonEmitter
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn new(
dst: Box<Write + Send>,
registry: Option<Registry>,
code_map: Lrc<CodeMap>,
pretty: bool,
suggestion_applicability: bool
) -> JsonEmitter
[src]
pub fn new(
dst: Box<Write + Send>,
registry: Option<Registry>,
code_map: Lrc<CodeMap>,
pretty: bool,
suggestion_applicability: bool
) -> JsonEmitter
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn ui_testing(self, ui_testing: bool) -> Self
[src]
pub fn ui_testing(self, ui_testing: bool) -> Self
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl Emitter for JsonEmitter
[src]
impl Emitter for JsonEmitter
fn emit(&mut self, db: &DiagnosticBuilder)
[src]
fn emit(&mut self, db: &DiagnosticBuilder)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Emit a structured diagnostic.
fn should_show_explain(&self) -> bool
[src]
fn should_show_explain(&self) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Check if should show explanations about "rustc --explain"
Auto Trait Implementations
impl !Send for JsonEmitter
impl !Send for JsonEmitter
impl !Sync for JsonEmitter
impl !Sync for JsonEmitter