Skip to main content

DrawableMut

Trait DrawableMut 

Source
pub trait DrawableMut: Drawable {
    // Provided methods
    fn draw_mut<T: Drawer>(&mut self, window: &mut T) { ... }
    fn draw_with_context_mut(&mut self, context: &mut Context<'_>) { ... }
}

Provided Methods§

Source

fn draw_mut<T: Drawer>(&mut self, window: &mut T)

Mutable version of draw function.

Source

fn draw_with_context_mut(&mut self, context: &mut Context<'_>)

Mutable draw context function.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§