Enum optics::concrete::ErrorCompose
source · pub enum ErrorCompose<E, S, R> {
Head(E),
Tail(S, R),
}
Expand description
Error type for Compose
d optics.
Variants§
Head(E)
Error happened for the first optics in this composition.
Tail(S, R)
Operation for the first optics succeeded in this composition.
Trait Implementations§
source§impl<E: Clone, S: Clone, R: Clone> Clone for ErrorCompose<E, S, R>
impl<E: Clone, S: Clone, R: Clone> Clone for ErrorCompose<E, S, R>
source§fn clone(&self) -> ErrorCompose<E, S, R>
fn clone(&self) -> ErrorCompose<E, S, R>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<E, S, R> From<E> for ErrorCompose<E, S, R>
impl<E, S, R> From<E> for ErrorCompose<E, S, R>
source§impl<E: PartialEq, S: PartialEq, R: PartialEq> PartialEq for ErrorCompose<E, S, R>
impl<E: PartialEq, S: PartialEq, R: PartialEq> PartialEq for ErrorCompose<E, S, R>
source§fn eq(&self, other: &ErrorCompose<E, S, R>) -> bool
fn eq(&self, other: &ErrorCompose<E, S, R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<E: Copy, S: Copy, R: Copy> Copy for ErrorCompose<E, S, R>
impl<E: Eq, S: Eq, R: Eq> Eq for ErrorCompose<E, S, R>
impl<E, S, R> StructuralPartialEq for ErrorCompose<E, S, R>
Auto Trait Implementations§
impl<E, S, R> Freeze for ErrorCompose<E, S, R>
impl<E, S, R> RefUnwindSafe for ErrorCompose<E, S, R>
impl<E, S, R> Send for ErrorCompose<E, S, R>
impl<E, S, R> Sync for ErrorCompose<E, S, R>
impl<E, S, R> Unpin for ErrorCompose<E, S, R>
impl<E, S, R> UnwindSafe for ErrorCompose<E, S, R>
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