pub struct RawBoundsError<B>(/* private fields */);Expand description
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§
Source§impl<B> RawBoundsError<B>
impl<B> RawBoundsError<B>
Sourcepub const fn new() -> RawBoundsError<B>
pub 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§
Source§impl<B> Clone for RawBoundsError<B>
impl<B> Clone for RawBoundsError<B>
Source§fn clone(&self) -> RawBoundsError<B>
fn clone(&self) -> RawBoundsError<B>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<B> Copy for RawBoundsError<B>
Source§impl<B, P> Debug for RawBoundsError<B>
impl<B, P> Debug for RawBoundsError<B>
Source§impl<B, P> Display for RawBoundsError<B>
impl<B, P> Display for RawBoundsError<B>
impl<B: Eq> Eq for RawBoundsError<B>
Source§impl<B, P> Format for RawBoundsError<B>
Available on crate feature defmt only.
impl<B, P> Format for RawBoundsError<B>
Available on crate feature
defmt only.Source§impl<B: PartialEq> PartialEq for RawBoundsError<B>
impl<B: PartialEq> PartialEq for RawBoundsError<B>
impl<B: PartialEq> StructuralPartialEq for RawBoundsError<B>
Auto Trait Implementations§
impl<B> Freeze for RawBoundsError<B>
impl<B> RefUnwindSafe for RawBoundsError<B>where
B: RefUnwindSafe,
impl<B> Send for RawBoundsError<B>where
B: Send,
impl<B> Sync for RawBoundsError<B>where
B: Sync,
impl<B> Unpin for RawBoundsError<B>where
B: Unpin,
impl<B> UnsafeUnpin for RawBoundsError<B>
impl<B> UnwindSafe for RawBoundsError<B>where
B: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more