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