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