Enum regex_syntax::either::Either [−][src]
pub enum Either<Left, Right> {
Left(Left),
Right(Right),
}A simple binary sum type.
This is occasionally useful in an ad hoc fashion.
Variants
Left(Left)Right(Right)Trait Implementations
impl<Left: Clone, Right: Clone> Clone for Either<Left, Right>[src]
impl<Left: Clone, Right: Clone> Clone for Either<Left, Right>fn clone(&self) -> Either<Left, Right>[src]
fn clone(&self) -> Either<Left, Right>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<Left: Debug, Right: Debug> Debug for Either<Left, Right>[src]
impl<Left: Debug, Right: Debug> Debug for Either<Left, Right>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<Left: Eq, Right: Eq> Eq for Either<Left, Right>[src]
impl<Left: Eq, Right: Eq> Eq for Either<Left, Right>fn assert_receiver_is_total_eq(&self)[src]
fn assert_receiver_is_total_eq(&self)impl<Left: PartialEq, Right: PartialEq> PartialEq for Either<Left, Right>[src]
impl<Left: PartialEq, Right: PartialEq> PartialEq for Either<Left, Right>