Trait limn_core::widget::draw::Draw [] [src]

pub trait Draw: Debug + Any {
    fn draw(
        &mut self,
        bounds: Rect,
        crop_to: Rect,
        renderer: &mut RenderBuilder
    ); }

Required Methods

Methods

impl Draw

Returns true if the boxed type is the same as T

Returns some reference to the boxed value if it is of type T, or None if it isn't.

Important traits for &'a mut I

Returns a reference to the boxed value, blindly assuming it to be of type T. If you are not absolutely certain of T, you must not call this.

Returns some mutable reference to the boxed value if it is of type T, or None if it isn't.

Important traits for &'a mut I

Returns a mutable reference to the boxed value, blindly assuming it to be of type T. If you are not absolutely certain of T, you must not call this.

impl Draw

Returns the boxed value if it is of type T, or Err(Self) if it isn't.

Important traits for Box<I>

Returns the boxed value, blindly assuming it to be of type T. If you are not absolutely certain of T, you must not call this.

Implementors