pub enum ErasureError {
Eto001UnboundedAssoc {
assoc_name: String,
},
Eto002StaticOnly {
method_name: String,
},
}Expand description
Errors Erase_T can surface per §Q25.C.1 / §Q25.C.4 ETO error codes.
Variants§
Eto001UnboundedAssoc
ETO-001: Self::A with no trait bound cannot be erased.
Eto002StaticOnly
ETO-002: method is #[static_only] and cannot be called through
dyn T (the emission tier checks this at the call site before
even building a dyn coercion).
Trait Implementations§
Source§impl Clone for ErasureError
impl Clone for ErasureError
Source§fn clone(&self) -> ErasureError
fn clone(&self) -> ErasureError
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 moreSource§impl Debug for ErasureError
impl Debug for ErasureError
Source§impl PartialEq for ErasureError
impl PartialEq for ErasureError
Source§fn eq(&self, other: &ErasureError) -> bool
fn eq(&self, other: &ErasureError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ErasureError
impl StructuralPartialEq for ErasureError
Auto Trait Implementations§
impl Freeze for ErasureError
impl RefUnwindSafe for ErasureError
impl Send for ErasureError
impl Sync for ErasureError
impl Unpin for ErasureError
impl UnsafeUnpin for ErasureError
impl UnwindSafe for ErasureError
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