Enum pbcodec::variants::Variant2 [] [src]

pub enum Variant2<A, B> {
    A(A),
    B(B),
}

Variants

Trait Implementations

impl<A, B> From<Variant2<A, B>> for Oneof2<A, B>
[src]

[src]

Performs the conversion.

impl<A: Debug, B: Debug> Debug for Variant2<A, B>
[src]

[src]

Formats the value using the given formatter. Read more

impl<A: Clone, B: Clone> Clone for Variant2<A, B>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<A: Copy, B: Copy> Copy for Variant2<A, B>
[src]

Auto Trait Implementations

impl<A, B> Send for Variant2<A, B> where
    A: Send,
    B: Send

impl<A, B> Sync for Variant2<A, B> where
    A: Sync,
    B: Sync