pub enum DiagInlineMode {
Off,
Current,
All,
}Expand description
Inline diagnostic ghost-text mode. Controls where the end-of-line // …
diagnostic message is shown (Error-Lens style). Matches
:set diagnostics_inline=off|current|all.
Variants§
Off
Never show inline diagnostic ghost text.
Current
Show only on the cursor’s current line.
All
Show on every line that has a diagnostic (default).
Trait Implementations§
Source§impl Clone for DiagInlineMode
impl Clone for DiagInlineMode
Source§fn clone(&self) -> DiagInlineMode
fn clone(&self) -> DiagInlineMode
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 moreimpl Copy for DiagInlineMode
Source§impl Debug for DiagInlineMode
impl Debug for DiagInlineMode
Source§impl Default for DiagInlineMode
impl Default for DiagInlineMode
Source§fn default() -> DiagInlineMode
fn default() -> DiagInlineMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiagInlineMode
impl<'de> Deserialize<'de> for DiagInlineMode
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
impl Eq for DiagInlineMode
Source§impl Hash for DiagInlineMode
impl Hash for DiagInlineMode
Source§impl PartialEq for DiagInlineMode
impl PartialEq for DiagInlineMode
Source§fn eq(&self, other: &DiagInlineMode) -> bool
fn eq(&self, other: &DiagInlineMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DiagInlineMode
impl Serialize for DiagInlineMode
impl StructuralPartialEq for DiagInlineMode
Auto Trait Implementations§
impl Freeze for DiagInlineMode
impl RefUnwindSafe for DiagInlineMode
impl Send for DiagInlineMode
impl Sync for DiagInlineMode
impl Unpin for DiagInlineMode
impl UnsafeUnpin for DiagInlineMode
impl UnwindSafe for DiagInlineMode
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