pub struct Transition {
pub style: TransitionStyle,
pub duration: f64,
pub dimension: Dimension,
pub motion: Motion,
pub direction: TransitionDirection,
pub scale: f64,
pub opaque: bool,
}Expand description
A transition dictionary (ISO 32000-1 §12.4.4, Table 162) with every absent entry at its default.
Fields§
§style: TransitionStyle/S, Replace when absent or not a listed style.
duration: f64/D: the effect’s duration in seconds, 1 when absent.
dimension: Dimension/Dm, horizontal when absent.
motion: Motion/M, inward when absent.
direction: TransitionDirection/Di, left to right when absent.
scale: f64/SS: the starting or ending scale of a Fly transition, 1 when absent.
opaque: bool/B: whether a Fly transition’s area is rectangular and opaque.
Trait Implementations§
Source§impl Clone for Transition
impl Clone for Transition
Source§impl Debug for Transition
impl Debug for Transition
Source§impl Default for Transition
impl Default for Transition
Source§fn default() -> Transition
fn default() -> Transition
Returns the “default value” for a type. Read more
Source§impl PartialEq for Transition
impl PartialEq for Transition
impl StructuralPartialEq for Transition
Auto Trait Implementations§
impl Freeze for Transition
impl RefUnwindSafe for Transition
impl Send for Transition
impl Sync for Transition
impl Unpin for Transition
impl UnsafeUnpin for Transition
impl UnwindSafe for Transition
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