Trait stdweb::web::RenderingContext [] [src]

pub trait RenderingContext {
    type Error;
    fn from_canvas(canvas: &CanvasElement) -> Result<Self, Self::Error>
    where
        Self: Sized
; }

Trait implemented by rendering contexts which can be obtained from a canvas.

Associated Types

Type of error which can occur whilst creating this context

Required Methods

Name which identifies this kind of rendering context.

Implementors