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§
Source§impl Clone for IncludeBackground
impl Clone for IncludeBackground
Source§fn clone(&self) -> IncludeBackground
fn clone(&self) -> IncludeBackground
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 IncludeBackground
impl Debug for IncludeBackground
Source§impl PartialEq for IncludeBackground
impl PartialEq for IncludeBackground
impl Copy for IncludeBackground
impl Eq for IncludeBackground
impl StructuralPartialEq for IncludeBackground
Auto Trait Implementations§
impl Freeze for IncludeBackground
impl RefUnwindSafe for IncludeBackground
impl Send for IncludeBackground
impl Sync for IncludeBackground
impl Unpin for IncludeBackground
impl UnwindSafe for IncludeBackground
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.