pub enum RetainError<E> {
Resource(MemoryError),
Predicate(E),
}Expand description
A refused in-place filter, preserving the predicate’s own cause.
Variants§
Resource(MemoryError)
The map could not admit its traversal or erase metadata.
Predicate(E)
The caller’s predicate refused further processing.
Trait Implementations§
Source§impl<E: Debug> Debug for RetainError<E>
impl<E: Debug> Debug for RetainError<E>
impl<E: Eq> Eq for RetainError<E>
Source§impl From<RetainError<MemoryError>> for MemoryError
impl From<RetainError<MemoryError>> for MemoryError
Source§fn from(error: RetainError<MemoryError>) -> Self
fn from(error: RetainError<MemoryError>) -> Self
Converts to this type from the input type.
Source§impl<E: PartialEq> PartialEq for RetainError<E>
impl<E: PartialEq> PartialEq for RetainError<E>
impl<E: PartialEq> StructuralPartialEq for RetainError<E>
Auto Trait Implementations§
impl<E> Freeze for RetainError<E>where
E: Freeze,
impl<E> RefUnwindSafe for RetainError<E>where
E: RefUnwindSafe,
impl<E> Send for RetainError<E>where
E: Send,
impl<E> Sync for RetainError<E>where
E: Sync,
impl<E> Unpin for RetainError<E>where
E: Unpin,
impl<E> UnsafeUnpin for RetainError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for RetainError<E>where
E: 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