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

Trait Implementations

impl<Left: Clone, Right: Clone> Clone for Either<Left, Right>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<Left: Debug, Right: Debug> Debug for Either<Left, Right>
[src]

Formats the value using the given formatter. Read more

impl<Left: Eq, Right: Eq> Eq for Either<Left, Right>
[src]

impl<Left: PartialEq, Right: PartialEq> PartialEq for Either<Left, Right>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<Left, Right> Send for Either<Left, Right> where
    Left: Send,
    Right: Send

impl<Left, Right> Sync for Either<Left, Right> where
    Left: Sync,
    Right: Sync