Enum stdweb::web::CanvasStyle [] [src]

pub enum CanvasStyle {
    String(String),
    CanvasGradient(CanvasGradient),
    CanvasPattern(CanvasPattern),
}

Certain style functions can return multiple types

Variants

String representing the style

CanvasGradient representing the style

CanvasPattern representing the style

Trait Implementations

impl Debug for CanvasStyle
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for CanvasStyle
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for CanvasStyle
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for CanvasStyle
[src]

impl TryFrom<Value> for CanvasStyle
[src]

The type returned in the event of a conversion error.

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for CanvasStyle

impl Sync for CanvasStyle