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