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