#[non_exhaustive]pub enum FillOpacity {
Percentage(Percentage),
Number(f64),
}Expand description
A value of fill-opacity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for FillOpacity
impl Clone for FillOpacity
Source§fn clone(&self) -> FillOpacity
fn clone(&self) -> FillOpacity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FillOpacity
impl Debug for FillOpacity
Source§impl Display for FillOpacity
impl Display for FillOpacity
Source§impl From<Percentage> for FillOpacity
impl From<Percentage> for FillOpacity
Source§fn from(v: Percentage) -> FillOpacity
fn from(v: Percentage) -> FillOpacity
Converts to this type from the input type.
Source§impl From<f64> for FillOpacity
impl From<f64> for FillOpacity
Source§fn from(v: f64) -> FillOpacity
fn from(v: f64) -> FillOpacity
Converts to this type from the input type.
Source§impl From<i32> for FillOpacity
impl From<i32> for FillOpacity
Source§fn from(v: i32) -> FillOpacity
fn from(v: i32) -> FillOpacity
Converts to this type from the input type.
Source§impl PartialEq for FillOpacity
impl PartialEq for FillOpacity
impl StructuralPartialEq for FillOpacity
Auto Trait Implementations§
impl Freeze for FillOpacity
impl RefUnwindSafe for FillOpacity
impl Send for FillOpacity
impl Sync for FillOpacity
impl Unpin for FillOpacity
impl UnsafeUnpin for FillOpacity
impl UnwindSafe for FillOpacity
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