#[non_exhaustive]pub enum MaskBorder {
Alpha,
Luminance,
None,
Repeat,
Round,
Space,
Stretch,
Percentage(Percentage),
Number(f64),
Url(Url),
Raw(Raw),
}Expand description
A value of mask-border.
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.
Alpha
alpha.
Luminance
luminance.
None
none.
Repeat
repeat.
Round
round.
Space
space.
Stretch
stretch.
Percentage(Percentage)
A percentage.
Number(f64)
A number.
Url(Url)
A URL.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for MaskBorder
impl Clone for MaskBorder
Source§fn clone(&self) -> MaskBorder
fn clone(&self) -> MaskBorder
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 MaskBorder
impl Debug for MaskBorder
Source§impl Display for MaskBorder
impl Display for MaskBorder
Source§impl From<Percentage> for MaskBorder
impl From<Percentage> for MaskBorder
Source§fn from(v: Percentage) -> Self
fn from(v: Percentage) -> Self
Converts to this type from the input type.
Source§impl From<Raw> for MaskBorder
impl From<Raw> for MaskBorder
Source§impl From<Url> for MaskBorder
impl From<Url> for MaskBorder
Source§impl From<f64> for MaskBorder
impl From<f64> for MaskBorder
Source§impl From<i32> for MaskBorder
impl From<i32> for MaskBorder
Source§impl PartialEq for MaskBorder
impl PartialEq for MaskBorder
impl StructuralPartialEq for MaskBorder
Auto Trait Implementations§
impl Freeze for MaskBorder
impl RefUnwindSafe for MaskBorder
impl Send for MaskBorder
impl Sync for MaskBorder
impl Unpin for MaskBorder
impl UnsafeUnpin for MaskBorder
impl UnwindSafe for MaskBorder
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