pub struct ContentTransform {
pub enter: EnterTransition,
pub exit: ExitTransition,
pub size_transform: Option<SizeTransform>,
}Expand description
How an AnimatedContent changes from one content to the next.
Mirrors Jetpack Compose’s ContentTransform: build one with
enter.together_with(exit) and add a size animation with
using.
Fields§
§enter: EnterTransitionTransition that plays on the content that comes in.
exit: ExitTransitionTransition that plays on the content that goes out.
size_transform: Option<SizeTransform>How the container’s size follows the content’s; None keeps the
container as large as the largest content during the change.
Implementations§
Source§impl ContentTransform
impl ContentTransform
Sourcepub fn using(self, size_transform: SizeTransform) -> Self
pub fn using(self, size_transform: SizeTransform) -> Self
Animates the container’s size with size_transform. Compose’s
transform using SizeTransform().
Trait Implementations§
Source§impl Clone for ContentTransform
impl Clone for ContentTransform
impl Copy for ContentTransform
Source§impl Debug for ContentTransform
impl Debug for ContentTransform
Source§impl PartialEq for ContentTransform
impl PartialEq for ContentTransform
impl StructuralPartialEq for ContentTransform
Auto Trait Implementations§
impl Freeze for ContentTransform
impl RefUnwindSafe for ContentTransform
impl Send for ContentTransform
impl Sync for ContentTransform
impl Unpin for ContentTransform
impl UnsafeUnpin for ContentTransform
impl UnwindSafe for ContentTransform
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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