[−][src]Trait stdweb::web::RenderingContext
Trait implemented by rendering contexts which can be obtained from a canvas.
Associated Types
type Error
Type of error which can occur whilst creating this context
Required methods
fn from_canvas(canvas: &CanvasElement) -> Result<Self, Self::Error> where
Self: Sized,
Self: Sized,
Name which identifies this kind of rendering context.
Implementors
impl RenderingContext for CanvasRenderingContext2d
[src]
impl RenderingContext for CanvasRenderingContext2d
type Error = ConversionError
fn from_canvas(canvas: &CanvasElement) -> Result<Self, ConversionError> | [src] |