Enum syntect::html::IncludeBackground
source · [−]pub enum IncludeBackground {
No,
Yes,
IfDifferent(Color),
}
Expand description
Determines how background color attributes are generated
Variants
No
Don’t include background-color
, for performance or so that you can use your own background.
Yes
Set background color attributes on every node
IfDifferent(Color)
Only set the background-color
if it is different than the default (presumably set on a parent element)
Trait Implementations
sourceimpl Clone for IncludeBackground
impl Clone for IncludeBackground
sourcefn clone(&self) -> IncludeBackground
fn clone(&self) -> IncludeBackground
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for IncludeBackground
impl Debug for IncludeBackground
sourceimpl PartialEq<IncludeBackground> for IncludeBackground
impl PartialEq<IncludeBackground> for IncludeBackground
sourcefn eq(&self, other: &IncludeBackground) -> bool
fn eq(&self, other: &IncludeBackground) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IncludeBackground) -> bool
fn ne(&self, other: &IncludeBackground) -> bool
This method tests for !=
.
impl Copy for IncludeBackground
impl Eq for IncludeBackground
impl StructuralEq for IncludeBackground
impl StructuralPartialEq for IncludeBackground
Auto Trait Implementations
impl RefUnwindSafe for IncludeBackground
impl Send for IncludeBackground
impl Sync for IncludeBackground
impl Unpin for IncludeBackground
impl UnwindSafe for IncludeBackground
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more