Enum ethcore_rpc::v1::types::Either [] [src]

pub enum Either<A, B> where A: Debug + Clone, B: Debug + Clone {
    Either(A),
    Or(B),
}

Represents two possible return values.

Variants

Primary value

Secondary value

Trait Implementations

impl<A: Clone, B: Clone> Clone for Either<A, B> where A: Debug + Clone, B: Debug + Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<A: Debug, B: Debug> Debug for Either<A, B> where A: Debug + Clone, B: Debug + Clone
[src]

Formats the value using the given formatter.

impl<A, B> From<A> for Either<A, B> where A: Debug + Clone, B: Debug + Clone
[src]

Performs the conversion.

impl<A, B> Serialize for Either<A, B> where A: Serialize + Debug + Clone, B: Serialize + Debug + Clone
[src]

Serializes this value into this serializer.