Struct BoundsError

pub struct BoundsError { /* private fields */ }

The error type used by the trait implementations of Bounds in this crate.

Callers can think of this as a single unifying error value that combines all implementations of Bounds in this crate. Internally, it's an enum with each variant corresponding to a single implementation of Bounds. Each variant has a field containing a zero-sized RawBoundsError<B>, where B is the type implementing Bounds.

Trait Implementations

impl Clone for BoundsError

fn clone(&self) -> BoundsError

impl Copy for BoundsError

impl Debug for BoundsError

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

impl Display for BoundsError

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

impl Eq for BoundsError

impl PartialEq for BoundsError

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

impl StructuralPartialEq for BoundsError

Auto Trait Implementations

impl Freeze for BoundsError

impl RefUnwindSafe for BoundsError

impl Send for BoundsError

impl Sync for BoundsError

impl Unpin for BoundsError

impl UnsafeUnpin for BoundsError

impl UnwindSafe for BoundsError

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for BoundsError

fn from(t: T) -> T

Returns the argument unchanged.

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

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

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

fn to_string(&self) -> String

impl<T, U> Into<U> for BoundsError 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 BoundsError 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 BoundsError where U: TryFrom<T>,

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