Struct RangeError

pub struct RangeError { /* private fields */ }

An error type that combines BoundsError with other custom error variants.

For example, a range error on the days of the month when constructing a date would ideally include the corresponding year and month. Otherwise the error message is likely to be much less useful than it could be.

Trait Implementations

impl Clone for RangeError

fn clone(&self) -> Self

impl Copy for RangeError

impl Debug for RangeError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for RangeError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for RangeError

impl Error for RangeError

impl From<BoundsError> for RangeError

fn from(err: BoundsError) -> RangeError

impl PartialEq for RangeError

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for RangeError

Auto Trait Implementations

impl Freeze for RangeError

impl RefUnwindSafe for RangeError

impl Send for RangeError

impl Sync for RangeError

impl Unpin for RangeError

impl UnsafeUnpin for RangeError

impl UnwindSafe for RangeError

Blanket Implementations

impl<T> Any for RangeError where T: 'static + ?Sized,

impl<T> Borrow<T> for RangeError where T: ?Sized,

impl<T> BorrowMut<T> for RangeError where T: ?Sized,

impl<T> CloneToUninit for RangeError where T: Clone,

impl<T> From<T> for RangeError

impl<T> ToOwned for RangeError where T: Clone,

impl<T> ToString for RangeError where T: Display + ?Sized,

impl<T, U> Into<U> for RangeError where U: From<T>,

impl<T, U> TryFrom<U> for RangeError where U: Into<T>,

impl<T, U> TryInto<U> for RangeError where U: TryFrom<T>,