Enum stdweb::web::error::AddColorStopError
[−]
[src]
pub enum AddColorStopError { SyntaxError(SyntaxError), IndexSizeError(IndexSizeError), }
A enum of the exceptions that CanvasGradient.add_color_stop() may throw
Variants
SyntaxError(SyntaxError)
A SyntaxError if the color could not be parsed as a valid CSS color
IndexSizeError(IndexSizeError)
An IndexSizeError if the offset was not between 0 and 1, inclusive
Trait Implementations
impl Debug for AddColorStopError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for AddColorStopError
[src]
fn clone(&self) -> AddColorStopError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl TryFrom<Value> for AddColorStopError
[src]
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error>
[src]
Performs the conversion.
impl Display for AddColorStopError
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more