pub struct ScreenTransitionSpec {
pub effect: ScreenTransitionEffect,
pub duration_ms: u32,
pub origin: ScreenTransitionOrigin,
pub easing: Easing,
}Fields§
§effect: ScreenTransitionEffect§duration_ms: u32§origin: ScreenTransitionOrigin§easing: EasingImplementations§
Source§impl ScreenTransitionSpec
impl ScreenTransitionSpec
pub const fn none() -> Self
pub const fn fade(duration_ms: u32) -> Self
pub const fn slide_left(duration_ms: u32) -> Self
pub const fn slide_right(duration_ms: u32) -> Self
pub const fn slide_up(duration_ms: u32) -> Self
pub const fn slide_down(duration_ms: u32) -> Self
pub const fn push_moook(duration_ms: u32) -> Self
pub const fn pop_moook(duration_ms: u32) -> Self
pub const fn shutter_left(duration_ms: u32) -> Self
pub const fn shutter_right(duration_ms: u32) -> Self
pub const fn shutter_up(duration_ms: u32) -> Self
pub const fn shutter_down(duration_ms: u32) -> Self
pub const fn round_flip_left(duration_ms: u32) -> Self
pub const fn round_flip_right(duration_ms: u32) -> Self
pub const fn port_hole_left(duration_ms: u32) -> Self
pub const fn port_hole_right(duration_ms: u32) -> Self
pub const fn port_hole_up(duration_ms: u32) -> Self
pub const fn port_hole_down(duration_ms: u32) -> Self
pub const fn modal_slide_up(duration_ms: u32) -> Self
pub const fn modal_slide_down(duration_ms: u32) -> Self
pub const fn zoom(duration_ms: u32) -> Self
pub const fn circular_reveal(duration_ms: u32) -> Self
pub const fn wipe_left(duration_ms: u32) -> Self
pub const fn wipe_right(duration_ms: u32) -> Self
pub const fn wipe_up(duration_ms: u32) -> Self
pub const fn wipe_down(duration_ms: u32) -> Self
pub const fn with_origin(self, origin: ScreenTransitionOrigin) -> Self
pub const fn with_easing(self, easing: Easing) -> Self
Trait Implementations§
Source§impl Clone for ScreenTransitionSpec
impl Clone for ScreenTransitionSpec
Source§fn clone(&self) -> ScreenTransitionSpec
fn clone(&self) -> ScreenTransitionSpec
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 ScreenTransitionSpec
Source§impl Debug for ScreenTransitionSpec
impl Debug for ScreenTransitionSpec
impl Eq for ScreenTransitionSpec
Source§impl From<TransitionPreset> for ScreenTransitionSpec
impl From<TransitionPreset> for ScreenTransitionSpec
Source§fn from(value: TransitionPreset) -> Self
fn from(value: TransitionPreset) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScreenTransitionSpec
impl PartialEq for ScreenTransitionSpec
Source§fn eq(&self, other: &ScreenTransitionSpec) -> bool
fn eq(&self, other: &ScreenTransitionSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScreenTransitionSpec
Auto Trait Implementations§
impl Freeze for ScreenTransitionSpec
impl RefUnwindSafe for ScreenTransitionSpec
impl Send for ScreenTransitionSpec
impl Sync for ScreenTransitionSpec
impl Unpin for ScreenTransitionSpec
impl UnsafeUnpin for ScreenTransitionSpec
impl UnwindSafe for ScreenTransitionSpec
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.