#[non_exhaustive]pub enum StrokeOpacity {
Percentage(Percentage),
Number(f64),
}Expand description
A value of stroke-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 StrokeOpacity
impl Clone for StrokeOpacity
Source§fn clone(&self) -> StrokeOpacity
fn clone(&self) -> StrokeOpacity
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 StrokeOpacity
impl Debug for StrokeOpacity
Source§impl Display for StrokeOpacity
impl Display for StrokeOpacity
Source§impl From<Percentage> for StrokeOpacity
impl From<Percentage> for StrokeOpacity
Source§fn from(v: Percentage) -> StrokeOpacity
fn from(v: Percentage) -> StrokeOpacity
Converts to this type from the input type.
Source§impl From<f64> for StrokeOpacity
impl From<f64> for StrokeOpacity
Source§fn from(v: f64) -> StrokeOpacity
fn from(v: f64) -> StrokeOpacity
Converts to this type from the input type.
Source§impl From<i32> for StrokeOpacity
impl From<i32> for StrokeOpacity
Source§fn from(v: i32) -> StrokeOpacity
fn from(v: i32) -> StrokeOpacity
Converts to this type from the input type.
Source§impl PartialEq for StrokeOpacity
impl PartialEq for StrokeOpacity
impl StructuralPartialEq for StrokeOpacity
Auto Trait Implementations§
impl Freeze for StrokeOpacity
impl RefUnwindSafe for StrokeOpacity
impl Send for StrokeOpacity
impl Sync for StrokeOpacity
impl Unpin for StrokeOpacity
impl UnsafeUnpin for StrokeOpacity
impl UnwindSafe for StrokeOpacity
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