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 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 type Error = ConversionError;