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]
impl Debug for AddColorStopError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for AddColorStopError
[src]
impl Clone for AddColorStopError
fn clone(&self) -> AddColorStopError
[src]
fn clone(&self) -> AddColorStopError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl TryFrom<Value> for AddColorStopError
[src]
impl TryFrom<Value> for AddColorStopError
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error>
[src]
fn try_from(value: Value) -> Result<Self, Self::Error>
Performs the conversion.
impl Display for AddColorStopError
[src]
impl Display for AddColorStopError
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for AddColorStopError
[src]
impl Error for AddColorStopError
Auto Trait Implementations
impl Send for AddColorStopError
impl Send for AddColorStopError
impl Sync for AddColorStopError
impl Sync for AddColorStopError