pub enum VisualEffect {
Fade {
from_opacity: f32,
to_opacity: f32,
},
Scale {
from_scale: f32,
to_scale: f32,
},
Slide {
from: Offset,
to: Offset,
},
FadeSlide {
from_opacity: f32,
to_opacity: f32,
from: Offset,
to: Offset,
},
FadeScale {
from_opacity: f32,
to_opacity: f32,
from_scale: f32,
to_scale: f32,
},
}Variants§
Implementations§
Source§impl VisualEffect
impl VisualEffect
pub fn transition(self, animation: Animation) -> VisualTransition
Trait Implementations§
Source§impl Clone for VisualEffect
impl Clone for VisualEffect
Source§fn clone(&self) -> VisualEffect
fn clone(&self) -> VisualEffect
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 VisualEffect
Source§impl Debug for VisualEffect
impl Debug for VisualEffect
Source§impl PartialEq for VisualEffect
impl PartialEq for VisualEffect
Source§fn eq(&self, other: &VisualEffect) -> bool
fn eq(&self, other: &VisualEffect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VisualEffect
Auto Trait Implementations§
impl Freeze for VisualEffect
impl RefUnwindSafe for VisualEffect
impl Send for VisualEffect
impl Sync for VisualEffect
impl Unpin for VisualEffect
impl UnsafeUnpin for VisualEffect
impl UnwindSafe for VisualEffect
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.