Struct DiagnosticsConfig
pub struct DiagnosticsConfig {Show 14 fields
pub enabled: bool,
pub proc_macros_enabled: bool,
pub proc_attr_macros_enabled: bool,
pub disable_experimental: bool,
pub disabled: HashSet<String, FxBuildHasher>,
pub expr_fill_default: ExprFillDefaultMode,
pub style_lints: bool,
pub snippet_cap: Option<SnippetCap>,
pub insert_use: InsertUseConfig,
pub prefer_no_std: bool,
pub prefer_prelude: bool,
pub prefer_absolute: bool,
pub term_search_fuel: u64,
pub term_search_borrowck: bool,
}Fields§
§enabled: boolWhether native diagnostics are enabled.
proc_macros_enabled: bool§proc_attr_macros_enabled: bool§disable_experimental: bool§disabled: HashSet<String, FxBuildHasher>§expr_fill_default: ExprFillDefaultMode§style_lints: bool§snippet_cap: Option<SnippetCap>§insert_use: InsertUseConfig§prefer_no_std: bool§prefer_prelude: bool§prefer_absolute: bool§term_search_fuel: u64§term_search_borrowck: boolImplementations§
§impl DiagnosticsConfig
impl DiagnosticsConfig
pub fn test_sample() -> DiagnosticsConfig
Trait Implementations§
§impl Clone for DiagnosticsConfig
impl Clone for DiagnosticsConfig
§fn clone(&self) -> DiagnosticsConfig
fn clone(&self) -> DiagnosticsConfig
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for DiagnosticsConfig
impl RefUnwindSafe for DiagnosticsConfig
impl Send for DiagnosticsConfig
impl Sync for DiagnosticsConfig
impl Unpin for DiagnosticsConfig
impl UnwindSafe for DiagnosticsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more