#[non_exhaustive]pub enum MaskPosition {
Bottom,
Center,
Left,
Right,
Top,
Length(Length),
Percentage(Percentage),
Raw(Raw),
}Expand description
A value of mask-position.
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.
Bottom
bottom.
Center
center.
Left
left.
Right
right.
Top
top.
Length(Length)
A length.
Percentage(Percentage)
A percentage.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for MaskPosition
impl Clone for MaskPosition
Source§fn clone(&self) -> MaskPosition
fn clone(&self) -> MaskPosition
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 MaskPosition
impl Debug for MaskPosition
Source§impl Display for MaskPosition
impl Display for MaskPosition
Source§impl From<Length> for MaskPosition
impl From<Length> for MaskPosition
Source§impl From<Percentage> for MaskPosition
impl From<Percentage> for MaskPosition
Source§fn from(v: Percentage) -> Self
fn from(v: Percentage) -> Self
Converts to this type from the input type.
Source§impl From<Raw> for MaskPosition
impl From<Raw> for MaskPosition
Source§impl PartialEq for MaskPosition
impl PartialEq for MaskPosition
impl StructuralPartialEq for MaskPosition
Auto Trait Implementations§
impl Freeze for MaskPosition
impl RefUnwindSafe for MaskPosition
impl Send for MaskPosition
impl Sync for MaskPosition
impl Unpin for MaskPosition
impl UnsafeUnpin for MaskPosition
impl UnwindSafe for MaskPosition
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