[−][src]Enum gridly::location::component::RangeError
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]
fn clone(&self) -> 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]
fn eq(&self, other: &RangeError<T>) -> bool
[src]
fn ne(&self, other: &RangeError<T>) -> bool
[src]
impl From<RangeError<Row>> for LocationRangeError
[src]
fn from(err: RowRangeError) -> Self
[src]
impl From<RangeError<Column>> for LocationRangeError
[src]
fn from(err: ColumnRangeError) -> Self
[src]
impl<T: Debug + Component> Debug for RangeError<T>
[src]
Auto Trait Implementations
impl<T> Send for RangeError<T> where
T: Send,
T: Send,
impl<T> Sync for RangeError<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,