pub struct TransitionOptions {
pub corner: TransitionCorner,
pub cell: f32,
pub seed: u32,
pub order: PixelDissolveOrder,
pub direction: TransitionDirection,
pub aberration: f32,
}Expand description
The per-type knobs a transition may read, bundled.
Each of these is inert for every transition but the one or two that read it, so they travel together rather than as a growing tail of positional arguments threaded through the render task queue — a shape that made adding a transition a five-file edit.
Fields§
§corner: TransitionCornercorner_reveal: which corner the reveal grows from.
cell: f32pixel_dissolve: cell edge in px.
seed: u32pixel_dissolve: scatter seed.
order: PixelDissolveOrderpixel_dissolve: which cells turn first.
direction: TransitionDirectionchromatic_wipe: which way it travels.
aberration: f32chromatic_wipe: channel-split multiplier.
Trait Implementations§
Source§impl Clone for TransitionOptions
impl Clone for TransitionOptions
Source§fn clone(&self) -> TransitionOptions
fn clone(&self) -> TransitionOptions
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 moreimpl Copy for TransitionOptions
Source§impl Debug for TransitionOptions
impl Debug for TransitionOptions
Source§impl Default for TransitionOptions
impl Default for TransitionOptions
Source§impl From<&Transition> for TransitionOptions
impl From<&Transition> for TransitionOptions
Source§fn from(t: &Transition) -> Self
fn from(t: &Transition) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TransitionOptions
impl PartialEq for TransitionOptions
impl StructuralPartialEq for TransitionOptions
Auto Trait Implementations§
impl Freeze for TransitionOptions
impl RefUnwindSafe for TransitionOptions
impl Send for TransitionOptions
impl Sync for TransitionOptions
impl Unpin for TransitionOptions
impl UnsafeUnpin for TransitionOptions
impl UnwindSafe for TransitionOptions
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,
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> ⓘ
Converts
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> ⓘ
Converts
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