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
Bto implement theBoundstrait. But this constructor technically does not require it. However, theDebugandDisplayimpls 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: &RawBoundsError<B>) -> 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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for RawBoundsError<B>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for RawBoundsError<B>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for RawBoundsError<B>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for RawBoundsError<B>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for RawBoundsError<B>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for RawBoundsError<B>
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for RawBoundsError<B>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for RawBoundsError<B>
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 RawBoundsError<B>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>