Struct syntect::highlighting::ScoredStyle
source · pub struct ScoredStyle {
pub foreground: (MatchPower, Color),
pub background: (MatchPower, Color),
pub font_style: (MatchPower, FontStyle),
}
Fields§
§foreground: (MatchPower, Color)
§background: (MatchPower, Color)
§font_style: (MatchPower, FontStyle)
Trait Implementations§
source§impl Clone for ScoredStyle
impl Clone for ScoredStyle
source§fn clone(&self) -> ScoredStyle
fn clone(&self) -> ScoredStyle
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 ScoredStyle
impl Debug for ScoredStyle
source§impl PartialEq<ScoredStyle> for ScoredStyle
impl PartialEq<ScoredStyle> for ScoredStyle
source§fn eq(&self, other: &ScoredStyle) -> bool
fn eq(&self, other: &ScoredStyle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ScoredStyle
impl StructuralEq for ScoredStyle
impl StructuralPartialEq for ScoredStyle
Auto Trait Implementations§
impl RefUnwindSafe for ScoredStyle
impl Send for ScoredStyle
impl Sync for ScoredStyle
impl Unpin for ScoredStyle
impl UnwindSafe for ScoredStyle
Blanket Implementations§
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.