[][src]Enum gridly::location::component::RangeError

pub enum RangeError<T: Component> {
    TooLow(T),
    TooHigh(T),
}

Error indicating that a Row or Column was out of bounds.

Note that the bounds expressed in this error are half inclusive; that is, the lower bound in TooLow is an inclusive lower bound, but the upper bound in TooHigh is an exclusive upper bound. This is consistent with the conventional range representation of low..high

Variants

TooLow(T)

The given row or column was too low. The value in the error is the minimum row or column, inclusive.

TooHigh(T)

The given row or column was too high. The given value in the error is the maximum row or column, exclusive (that is, a value equal to the error value is considered too high).

Trait Implementations

impl<T: Clone + Component> Clone for RangeError<T>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Eq + Component> Eq for RangeError<T>[src]

impl<T: Copy + Component> Copy for RangeError<T>[src]

impl<T: PartialEq + Component> PartialEq<RangeError<T>> for RangeError<T>[src]

impl From<RangeError<Row>> for LocationRangeError[src]

impl From<RangeError<Column>> for LocationRangeError[src]

impl<T: Debug + Component> Debug for RangeError<T>[src]

Auto Trait Implementations

impl<T> Send for RangeError<T> where
    T: Send

impl<T> Sync for RangeError<T> where
    T: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]