pub enum Failure<I, L, C, E> {
Index(I),
Length {
actual: L,
capacity: C,
},
Inspect(E),
}Expand description
Rejected selection evidence, or the caller’s exact payload-check failure.
Variants§
Trait Implementations§
impl<I: Copy, L: Copy, C: Copy, E: Copy> Copy for Failure<I, L, C, E>
impl<I: Eq, L: Eq, C: Eq, E: Eq> Eq for Failure<I, L, C, E>
Source§impl<I: PartialEq, L: PartialEq, C: PartialEq, E: PartialEq> PartialEq for Failure<I, L, C, E>
impl<I: PartialEq, L: PartialEq, C: PartialEq, E: PartialEq> PartialEq for Failure<I, L, C, E>
impl<I: PartialEq, L: PartialEq, C: PartialEq, E: PartialEq> StructuralPartialEq for Failure<I, L, C, E>
Auto Trait Implementations§
impl<I, L, C, E> Freeze for Failure<I, L, C, E>
impl<I, L, C, E> RefUnwindSafe for Failure<I, L, C, E>
impl<I, L, C, E> Send for Failure<I, L, C, E>
impl<I, L, C, E> Sync for Failure<I, L, C, E>
impl<I, L, C, E> Unpin for Failure<I, L, C, E>
impl<I, L, C, E> UnsafeUnpin for Failure<I, L, C, E>
impl<I, L, C, E> UnwindSafe for Failure<I, L, C, E>
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