pub struct Transition {
pub kind: String,
pub duration: f64,
pub easing: Option<Easing>,
pub params: BTreeMap<String, Animated<EffectValue>>,
pub version: Option<u32>,
}Expand description
The transition between two neighbours of a sequence.
Fields§
§kind: Stringcrossfade, a built-in transition’s short name (wipe-left, circle-open, …), or a
full effect id (alpha2.transition.fade).
duration: f64How long the neighbours overlap, in seconds.
easing: Option<Easing>The timing curve. Default linear.
params: BTreeMap<String, Animated<EffectValue>>The effect’s parameters by name.
version: Option<u32>The effect definition’s version. Default 1.
Trait Implementations§
Source§impl Clone for Transition
impl Clone for Transition
Source§impl Debug for Transition
impl Debug for Transition
Source§impl<'de> Deserialize<'de> for Transition
impl<'de> Deserialize<'de> for Transition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Transition
impl PartialEq for Transition
Source§impl Serialize for Transition
impl Serialize for Transition
impl StructuralPartialEq for Transition
Auto Trait Implementations§
impl Forget for Transition
impl Freeze for Transitionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, Animated<EffectValue>> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Animated<EffectValue>)>>: Freeze,
impl Move for Transition
impl RefUnwindSafe for Transition
impl Send for Transitionwhere
RawVecInner: Send,
NodeRef<Owned, String, Animated<EffectValue>, LeafOrInternal>: Send,
BoxRaw<(String, Animated<EffectValue>)>: Send,
impl Sync for Transitionwhere
RawVecInner: Sync,
NodeRef<Owned, String, Animated<EffectValue>, LeafOrInternal>: Sync,
BoxRaw<(String, Animated<EffectValue>)>: Sync,
impl Unpin for Transition
impl UnsafeUnpin for Transitionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Animated<EffectValue>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Animated<EffectValue>)>>: UnsafeUnpin,
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