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