pub enum InlayHintKind {
Type,
Parameter,
Chaining,
}Expand description
Kind of inlay hint
Variants§
Type
Type annotation: let x: i32 = ...
Parameter
Parameter name: foo(/* param: */ value)
Chaining
Method chain result: .map(...): Vec<_>
Trait Implementations§
Source§impl Clone for InlayHintKind
impl Clone for InlayHintKind
Source§fn clone(&self) -> InlayHintKind
fn clone(&self) -> InlayHintKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InlayHintKind
impl Debug for InlayHintKind
Source§impl Default for InlayHintKind
impl Default for InlayHintKind
Source§fn default() -> InlayHintKind
fn default() -> InlayHintKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InlayHintKind
impl<'de> Deserialize<'de> for InlayHintKind
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 Hash for InlayHintKind
impl Hash for InlayHintKind
Source§impl PartialEq for InlayHintKind
impl PartialEq for InlayHintKind
Source§fn eq(&self, other: &InlayHintKind) -> bool
fn eq(&self, other: &InlayHintKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InlayHintKind
impl Serialize for InlayHintKind
impl Copy for InlayHintKind
impl Eq for InlayHintKind
impl StructuralPartialEq for InlayHintKind
Auto Trait Implementations§
impl Freeze for InlayHintKind
impl RefUnwindSafe for InlayHintKind
impl Send for InlayHintKind
impl Sync for InlayHintKind
impl Unpin for InlayHintKind
impl UnsafeUnpin for InlayHintKind
impl UnwindSafe for InlayHintKind
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