Enum js::conversions::ConversionResult [] [src]

pub enum ConversionResult<T> {
    Success(T),
    Failure(Cow<'static, str>),
}

An enum to better support enums through FromJSValConvertible::from_jsval.

Variants

Everything went fine.

Conversion failed, without a pending exception.

Methods

impl<T> ConversionResult<T>
[src]

[src]

Returns Some(value) if it is ConversionResult::Success.

Trait Implementations

impl<T: PartialEq> PartialEq for ConversionResult<T>
[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<T: Eq> Eq for ConversionResult<T>
[src]

impl<T: Clone> Clone for ConversionResult<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for ConversionResult<T>
[src]

[src]

Formats the value using the given formatter.