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