Struct language2::language_settings::InlayHintSettings
source · pub struct InlayHintSettings {
pub enabled: bool,
pub show_type_hints: bool,
pub show_parameter_hints: bool,
pub show_other_hints: bool,
}
Fields§
§enabled: bool
§show_type_hints: bool
§show_parameter_hints: bool
§show_other_hints: bool
Implementations§
source§impl InlayHintSettings
impl InlayHintSettings
pub fn enabled_inlay_hint_kinds(&self) -> HashSet<Option<InlayHintKind>>
Trait Implementations§
source§impl Clone for InlayHintSettings
impl Clone for InlayHintSettings
source§fn clone(&self) -> InlayHintSettings
fn clone(&self) -> InlayHintSettings
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 InlayHintSettings
impl Debug for InlayHintSettings
source§impl<'de> Deserialize<'de> for InlayHintSettings
impl<'de> Deserialize<'de> for InlayHintSettings
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for InlayHintSettings
impl JsonSchema for InlayHintSettings
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<InlayHintSettings> for InlayHintSettings
impl PartialEq<InlayHintSettings> for InlayHintSettings
source§fn eq(&self, other: &InlayHintSettings) -> bool
fn eq(&self, other: &InlayHintSettings) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InlayHintSettings
impl Serialize for InlayHintSettings
impl Copy for InlayHintSettings
impl Eq for InlayHintSettings
impl StructuralEq for InlayHintSettings
impl StructuralPartialEq for InlayHintSettings
Auto Trait Implementations§
impl RefUnwindSafe for InlayHintSettings
impl Send for InlayHintSettings
impl Sync for InlayHintSettings
impl Unpin for InlayHintSettings
impl UnwindSafe for InlayHintSettings
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.