pub struct Transition {
pub transition_type: TransitionType,
pub corner: TransitionCorner,
pub cell: f32,
pub seed: u32,
pub order: PixelDissolveOrder,
pub direction: TransitionDirection,
pub aberration: f32,
pub duration: f64,
pub easing: EasingType,
pub background: PanBackground,
}Fields§
§transition_type: TransitionType§corner: TransitionCornerWhich corner a corner_reveal grows from. Ignored by every other type.
cell: f32Cell edge in px for pixel_dissolve. Ignored by every other type.
seed: u32pixel_dissolve only: stable scatter selector. Two transitions with the
same seed dissolve in the same order.
order: PixelDissolveOrderpixel_dissolve only: which cells turn first.
direction: TransitionDirectionWhich way a chromatic_wipe travels. Ignored by every other type —
the wipe_*/slide family encodes its direction in the type name.
aberration: f32chromatic_wipe only: how far the red and cyan channels split at the
peak of the wipe, as a multiple of the tuned default. 0 removes the
colour flash and leaves a plain fast slide; 2 doubles it.
duration: f64§easing: EasingType§background: PanBackgroundHow the background behaves during a camera_pan. Ignored by every
other transition type, which composite two finished frames and have no
separate background layer to move.
Trait Implementations§
Source§impl Clone for Transition
impl Clone for Transition
Source§fn clone(&self) -> Transition
fn clone(&self) -> Transition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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>,
Source§impl From<&Transition> for TransitionOptions
impl From<&Transition> for TransitionOptions
Source§fn from(t: &Transition) -> Self
fn from(t: &Transition) -> Self
Source§impl JsonSchema for Transition
impl JsonSchema for Transition
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreAuto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more