pub struct OpacityStyleValue(pub OpacityValue);Expand description
Represents the style value for opacity as defined in css-color-6.
The opacity CSS property sets the transparency of an element.
The grammar is defined as:
<opacity-value>Tuple Fields§
§0: OpacityValueTrait Implementations§
Source§impl Clone for OpacityStyleValue
impl Clone for OpacityStyleValue
Source§fn clone(&self) -> OpacityStyleValue
fn clone(&self) -> OpacityStyleValue
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 OpacityStyleValue
impl Debug for OpacityStyleValue
Source§impl Hash for OpacityStyleValue
impl Hash for OpacityStyleValue
Source§impl Ord for OpacityStyleValue
impl Ord for OpacityStyleValue
Source§fn cmp(&self, other: &OpacityStyleValue) -> Ordering
fn cmp(&self, other: &OpacityStyleValue) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> Parse<'a> for OpacityStyleValue
impl<'a> Parse<'a> for OpacityStyleValue
Source§impl PartialEq for OpacityStyleValue
impl PartialEq for OpacityStyleValue
Source§impl PartialOrd for OpacityStyleValue
impl PartialOrd for OpacityStyleValue
Source§impl<'a> Peek<'a> for OpacityStyleValue
impl<'a> Peek<'a> for OpacityStyleValue
Source§impl ToCursors for OpacityStyleValue
impl ToCursors for OpacityStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for OpacityStyleValue
impl StructuralPartialEq for OpacityStyleValue
Auto Trait Implementations§
impl Freeze for OpacityStyleValue
impl RefUnwindSafe for OpacityStyleValue
impl Send for OpacityStyleValue
impl Sync for OpacityStyleValue
impl Unpin for OpacityStyleValue
impl UnwindSafe for OpacityStyleValue
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