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