#[non_exhaustive]pub enum Mask {
Show 31 variants
Add,
Alpha,
BorderBox,
Bottom,
Center,
ContentBox,
Exclude,
FillBox,
Intersect,
Left,
Luminance,
MarginBox,
MatchSource,
NoClip,
NoRepeat,
None,
PaddingBox,
Repeat,
RepeatX,
RepeatY,
Right,
Round,
Space,
StrokeBox,
Subtract,
Top,
ViewBox,
Length(Length),
Percentage(Percentage),
Url(Url),
Raw(Raw),
}Expand description
A value of mask.
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.
Add
add.
Alpha
alpha.
BorderBox
border-box.
Bottom
bottom.
Center
center.
ContentBox
content-box.
Exclude
exclude.
FillBox
fill-box.
Intersect
intersect.
Left
left.
Luminance
luminance.
MarginBox
margin-box.
MatchSource
match-source.
NoClip
no-clip.
NoRepeat
no-repeat.
None
none.
PaddingBox
padding-box.
Repeat
repeat.
RepeatX
repeat-x.
RepeatY
repeat-y.
Right
right.
Round
round.
Space
space.
StrokeBox
stroke-box.
Subtract
subtract.
Top
top.
ViewBox
view-box.
Length(Length)
A length.
Percentage(Percentage)
A percentage.
Url(Url)
A URL.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl From<Percentage> for Mask
impl From<Percentage> for Mask
Source§fn from(v: Percentage) -> Self
fn from(v: Percentage) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Mask
Auto Trait Implementations§
impl Freeze for Mask
impl RefUnwindSafe for Mask
impl Send for Mask
impl Sync for Mask
impl Unpin for Mask
impl UnsafeUnpin for Mask
impl UnwindSafe for Mask
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