Skip to main content

Transitioning

Trait Transitioning 

Source
pub trait Transitioning:
    Send
    + Sync
    + 'static {
    // Required method
    fn body(&self, content: ViewHandle, phase: TransitionPhase) -> ViewHandle;
}
Expand description

How a transition draws in each phase.

Required Methods§

Source

fn body(&self, content: ViewHandle, phase: TransitionPhase) -> ViewHandle

Draw the content for one phase.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F> Transitioning for F
where F: Fn(ViewHandle, TransitionPhase) -> ViewHandle + Send + Sync + 'static,