Enum js::conversions::ConversionBehavior [] [src]

pub enum ConversionBehavior {
    Default,
    EnforceRange,
    Clamp,
}

Behavior for converting out-of-range integers.

Variants

Wrap into the integer's range.

Throw an exception.

Clamp into the integer's range.

Trait Implementations

impl PartialEq for ConversionBehavior
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Eq for ConversionBehavior
[src]

impl Clone for ConversionBehavior
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more