Enum hecs::Or [−][src]
pub enum Or<L, R> {
Left(L),
Right(R),
Both(L, R),
}
Expand description
Holds an L
, or an R
, or both
Variants
Left(L)
Just an L
Right(R)
Just an R
Both(L, R)
Both an L
and an R
Implementations
Construct an Or<L, R>
if at least one argument is Some
Destructure into two Option
s, where either or both are Some
Transform L
with f
and R
with g
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<L, R> RefUnwindSafe for Or<L, R> where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> UnwindSafe for Or<L, R> where
L: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more