Struct ide::DiagnosticsConfig
source · 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: bool
Whether 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: bool
Implementations§
source§impl DiagnosticsConfig
impl DiagnosticsConfig
pub fn test_sample() -> DiagnosticsConfig
Trait Implementations§
source§impl Clone for DiagnosticsConfig
impl Clone for DiagnosticsConfig
source§fn clone(&self) -> DiagnosticsConfig
fn clone(&self) -> DiagnosticsConfig
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 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
§impl<T> Cast for T
impl<T> Cast for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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