#[non_exhaustive]pub enum Offset {
Show 17 variants
Auto,
BorderBox,
Bottom,
Center,
ContentBox,
FillBox,
Left,
None,
Normal,
PaddingBox,
Right,
StrokeBox,
Top,
ViewBox,
Length(Length),
Percentage(Percentage),
Raw(Raw),
}Expand description
A value of offset.
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.
Auto
auto.
BorderBox
border-box.
Bottom
bottom.
Center
center.
ContentBox
content-box.
FillBox
fill-box.
Left
left.
None
none.
Normal
normal.
PaddingBox
padding-box.
Right
right.
StrokeBox
stroke-box.
Top
top.
ViewBox
view-box.
Length(Length)
A length.
Percentage(Percentage)
A percentage.
Raw(Raw)
Any other value, passed through unchecked.
Trait Implementations§
Source§impl From<Percentage> for Offset
impl From<Percentage> for Offset
Source§fn from(v: Percentage) -> Self
fn from(v: Percentage) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Offset
Auto Trait Implementations§
impl Freeze for Offset
impl RefUnwindSafe for Offset
impl Send for Offset
impl Sync for Offset
impl Unpin for Offset
impl UnsafeUnpin for Offset
impl UnwindSafe for Offset
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