#[non_exhaustive]pub enum HoverFormat {
Plaintext,
Markdown,
}Expand description
Hover content format.
Forward compatibility: unknown wire values deserialise as
HoverFormat::Plaintext. Adding new variants is non-breaking.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for HoverFormat
impl Clone for HoverFormat
Source§fn clone(&self) -> HoverFormat
fn clone(&self) -> HoverFormat
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 HoverFormat
Source§impl Debug for HoverFormat
impl Debug for HoverFormat
Source§impl<'de> Deserialize<'de> for HoverFormat
impl<'de> Deserialize<'de> for HoverFormat
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 HoverFormat
Source§impl Hash for HoverFormat
impl Hash for HoverFormat
Source§impl PartialEq for HoverFormat
impl PartialEq for HoverFormat
Source§fn eq(&self, other: &HoverFormat) -> bool
fn eq(&self, other: &HoverFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HoverFormat
impl Serialize for HoverFormat
impl StructuralPartialEq for HoverFormat
Auto Trait Implementations§
impl Freeze for HoverFormat
impl RefUnwindSafe for HoverFormat
impl Send for HoverFormat
impl Sync for HoverFormat
impl Unpin for HoverFormat
impl UnsafeUnpin for HoverFormat
impl UnwindSafe for HoverFormat
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