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