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