Enum zed2::languages::markdown::MarkdownHighlight
source · pub enum MarkdownHighlight {
Style(MarkdownHighlightStyle),
Code(HighlightId),
}
Variants§
Style(MarkdownHighlightStyle)
Code(HighlightId)
Implementations§
source§impl MarkdownHighlight
impl MarkdownHighlight
pub fn to_highlight_style(&self, theme: &SyntaxTheme) -> Option<HighlightStyle>
Trait Implementations§
source§impl Clone for MarkdownHighlight
impl Clone for MarkdownHighlight
source§fn clone(&self) -> MarkdownHighlight
fn clone(&self) -> MarkdownHighlight
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 MarkdownHighlight
impl Debug for MarkdownHighlight
source§impl PartialEq<MarkdownHighlight> for MarkdownHighlight
impl PartialEq<MarkdownHighlight> for MarkdownHighlight
source§fn eq(&self, other: &MarkdownHighlight) -> bool
fn eq(&self, other: &MarkdownHighlight) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MarkdownHighlight
impl StructuralEq for MarkdownHighlight
impl StructuralPartialEq for MarkdownHighlight
Auto Trait Implementations§
impl RefUnwindSafe for MarkdownHighlight
impl Send for MarkdownHighlight
impl Sync for MarkdownHighlight
impl Unpin for MarkdownHighlight
impl UnwindSafe for MarkdownHighlight
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.source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.