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