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) -> RangeError

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: &RangeError) -> 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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for RangeError

fn from(t: T) -> T

Returns the argument unchanged.

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn to_string(&self) -> String

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>