pub enum BackgroundColorValue {
Initial,
Inherit,
Revert,
RevertLayer,
Unset,
CurrentColor,
Color(Color),
}Variants§
Implementations§
Source§impl BackgroundColorValue
impl BackgroundColorValue
Sourcepub const fn is_initial(&self) -> bool
pub const fn is_initial(&self) -> bool
Returns true if the enum is BackgroundColorValue::Initial otherwise false
Sourcepub const fn is_inherit(&self) -> bool
pub const fn is_inherit(&self) -> bool
Returns true if the enum is BackgroundColorValue::Inherit otherwise false
Sourcepub const fn is_revert(&self) -> bool
pub const fn is_revert(&self) -> bool
Returns true if the enum is BackgroundColorValue::Revert otherwise false
Sourcepub const fn is_revert_layer(&self) -> bool
pub const fn is_revert_layer(&self) -> bool
Returns true if the enum is BackgroundColorValue::RevertLayer otherwise false
Sourcepub const fn is_unset(&self) -> bool
pub const fn is_unset(&self) -> bool
Returns true if the enum is BackgroundColorValue::Unset otherwise false
Sourcepub const fn is_current_color(&self) -> bool
pub const fn is_current_color(&self) -> bool
Returns true if the enum is BackgroundColorValue::CurrentColor otherwise false
Trait Implementations§
Source§impl Clone for BackgroundColorValue
impl Clone for BackgroundColorValue
Source§fn clone(&self) -> BackgroundColorValue
fn clone(&self) -> BackgroundColorValue
Returns a duplicate 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 BackgroundColorValue
impl Debug for BackgroundColorValue
Source§impl Display for BackgroundColorValue
impl Display for BackgroundColorValue
Source§impl PartialEq for BackgroundColorValue
impl PartialEq for BackgroundColorValue
impl StructuralPartialEq for BackgroundColorValue
impl UnitDataType<BackgroundColor<BackgroundColorValue>> for BackgroundColorValue
Auto Trait Implementations§
impl Freeze for BackgroundColorValue
impl RefUnwindSafe for BackgroundColorValue
impl Send for BackgroundColorValue
impl Sync for BackgroundColorValue
impl Unpin for BackgroundColorValue
impl UnwindSafe for BackgroundColorValue
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