pub enum Rotation {
Floating(Radians),
Solid(Radians),
}
Expand description
The strategy used to rotate the content.
This is used to control the behavior of the layout when the content is rotated by a certain angle.
Variants§
Floating(Radians)
The element will float while rotating. The layout will be kept exactly as it was before the rotation.
This is especially useful when used for animations, as it will avoid the layout being shifted or resized when smoothly i.e. an icon.
This is the default.
Solid(Radians)
The element will be solid while rotating. The layout will be adjusted to fit the rotated content.
This allows you to rotate an image and have the layout adjust to fit the new size of the image.
Implementations§
Trait Implementations§
impl Copy for Rotation
impl StructuralPartialEq for Rotation
Auto Trait Implementations§
impl Freeze for Rotation
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnwindSafe for Rotation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.