Struct RawBoundsError

pub struct RawBoundsError<B>(/* private field */);

An error type that encodes information from an implementation of Bounds.

The information encoded is used to write an error message in response to a value being out of bounds.

Implementations

impl<B> RawBoundsError<B>

const fn new() -> RawBoundsError<B>

Create a new raw boundary error.

It is intended for B to implement the Bounds trait. But this constructor technically does not require it. However, the Debug and Display impls on this type do require it.

Trait Implementations

impl<B> Clone for RawBoundsError<B>

fn clone(&self) -> RawBoundsError<B>

impl<B> Copy for RawBoundsError<B>

impl<B, P> Debug for RawBoundsError<B> where B: Bounds<Primitive = P>, P: Debug,

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

impl<B, P> Display for RawBoundsError<B> where B: Bounds<Primitive = P>, P: Display,

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

impl<B: Eq> Eq for RawBoundsError<B>

impl<B: PartialEq> PartialEq for RawBoundsError<B>

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

impl<B: PartialEq> StructuralPartialEq for RawBoundsError<B>

Auto Trait Implementations

impl<B> Freeze for RawBoundsError<B> where PhantomData<B>: Freeze,

impl<B> RefUnwindSafe for RawBoundsError<B> where PhantomData<B>: RefUnwindSafe,

impl<B> Send for RawBoundsError<B> where PhantomData<B>: Send,

impl<B> Sync for RawBoundsError<B> where PhantomData<B>: Sync,

impl<B> Unpin for RawBoundsError<B> where PhantomData<B>: Unpin,

impl<B> UnsafeUnpin for RawBoundsError<B> where PhantomData<B>: UnsafeUnpin,

impl<B> UnwindSafe for RawBoundsError<B> where PhantomData<B>: UnwindSafe,

Blanket Implementations

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

impl<T> Borrow<T> for RawBoundsError<B> where T: ?Sized,

impl<T> BorrowMut<T> for RawBoundsError<B> where T: ?Sized,

impl<T> CloneToUninit for RawBoundsError<B> where T: Clone,

impl<T> From<T> for RawBoundsError<B>

impl<T> ToOwned for RawBoundsError<B> where T: Clone,

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

impl<T, U> Into<U> for RawBoundsError<B> where U: From<T>,

impl<T, U> TryFrom<U> for RawBoundsError<B> where U: Into<T>,

impl<T, U> TryInto<U> for RawBoundsError<B> where U: TryFrom<T>,