Skip to main content

Modifying

Trait Modifying 

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

How a view modifier draws.

Required Methods§

Source

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

Draw one modified view. content is whatever the modifier was applied to.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

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