#[non_exhaustive]pub enum MaskOrigin {
BorderBox,
ContentBox,
FillBox,
PaddingBox,
StrokeBox,
ViewBox,
Raw(Raw),
}Expand description
A value of mask-origin.
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.
BorderBox
border-box.
ContentBox
content-box.
FillBox
fill-box.
PaddingBox
padding-box.
StrokeBox
stroke-box.
ViewBox
view-box.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl Clone for MaskOrigin
impl Clone for MaskOrigin
Source§fn clone(&self) -> MaskOrigin
fn clone(&self) -> MaskOrigin
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 MaskOrigin
impl Debug for MaskOrigin
Source§impl Display for MaskOrigin
impl Display for MaskOrigin
Source§impl From<Raw> for MaskOrigin
impl From<Raw> for MaskOrigin
Source§impl PartialEq for MaskOrigin
impl PartialEq for MaskOrigin
impl StructuralPartialEq for MaskOrigin
Auto Trait Implementations§
impl Freeze for MaskOrigin
impl RefUnwindSafe for MaskOrigin
impl Send for MaskOrigin
impl Sync for MaskOrigin
impl Unpin for MaskOrigin
impl UnsafeUnpin for MaskOrigin
impl UnwindSafe for MaskOrigin
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