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

A SyntaxError if the color could not be parsed as a valid CSS color

An IndexSizeError if the offset was not between 0 and 1, inclusive

Trait Implementations

impl Debug for AddColorStopError
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for AddColorStopError
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl TryFrom<Value> for AddColorStopError
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

impl Display for AddColorStopError
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for AddColorStopError
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

Auto Trait Implementations