pub struct InlayHintsConfig {Show 22 fields
pub render_colons: bool,
pub type_hints: bool,
pub discriminant_hints: DiscriminantHints,
pub parameter_hints: bool,
pub generic_parameter_hints: GenericParameterHints,
pub chaining_hints: bool,
pub adjustment_hints: AdjustmentHints,
pub adjustment_hints_mode: AdjustmentHintsMode,
pub adjustment_hints_hide_outside_unsafe: bool,
pub closure_return_type_hints: ClosureReturnTypeHints,
pub closure_capture_hints: bool,
pub binding_mode_hints: bool,
pub implicit_drop_hints: bool,
pub lifetime_elision_hints: LifetimeElisionHints,
pub param_names_for_lifetime_elision_hints: bool,
pub hide_named_constructor_hints: bool,
pub hide_closure_initialization_hints: bool,
pub range_exclusive_hints: bool,
pub closure_style: ClosureStyle,
pub max_length: Option<usize>,
pub closing_brace_hints_min_lines: Option<usize>,
pub fields_to_resolve: InlayFieldsToResolve,
}
Fields§
§render_colons: bool
§type_hints: bool
§discriminant_hints: DiscriminantHints
§parameter_hints: bool
§generic_parameter_hints: GenericParameterHints
§chaining_hints: bool
§adjustment_hints: AdjustmentHints
§adjustment_hints_mode: AdjustmentHintsMode
§adjustment_hints_hide_outside_unsafe: bool
§closure_return_type_hints: ClosureReturnTypeHints
§closure_capture_hints: bool
§binding_mode_hints: bool
§implicit_drop_hints: bool
§lifetime_elision_hints: LifetimeElisionHints
§param_names_for_lifetime_elision_hints: bool
§hide_named_constructor_hints: bool
§hide_closure_initialization_hints: bool
§range_exclusive_hints: bool
§closure_style: ClosureStyle
§max_length: Option<usize>
§closing_brace_hints_min_lines: Option<usize>
§fields_to_resolve: InlayFieldsToResolve
Trait Implementations§
source§impl Clone for InlayHintsConfig
impl Clone for InlayHintsConfig
source§fn clone(&self) -> InlayHintsConfig
fn clone(&self) -> InlayHintsConfig
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 InlayHintsConfig
impl Debug for InlayHintsConfig
source§impl PartialEq for InlayHintsConfig
impl PartialEq for InlayHintsConfig
impl Eq for InlayHintsConfig
impl StructuralPartialEq for InlayHintsConfig
Auto Trait Implementations§
impl Freeze for InlayHintsConfig
impl RefUnwindSafe for InlayHintsConfig
impl Send for InlayHintsConfig
impl Sync for InlayHintsConfig
impl Unpin for InlayHintsConfig
impl UnwindSafe for InlayHintsConfig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§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