Struct pbcodec::fields::Oneof2 [] [src]

pub struct Oneof2<A, B> {
    pub field: Option<Variant2<A, B>>,
}

Fields

Trait Implementations

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

Formats the value using the given formatter.

impl<A, B> Field for Oneof2<A, B> where
    A: SingularField,
    B: SingularField
[src]

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

Performs the conversion.

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

Performs the conversion.

impl<A, B> Default for Oneof2<A, B>
[src]

Returns the "default value" for a type. Read more

impl<R, A, B> DecodeField<R> for Oneof2<A, B> where
    R: Read,
    A: DecodeField<R> + SingularField,
    B: DecodeField<R> + SingularField
[src]

impl<W, A, B> Encode<W> for Oneof2<A, B> where
    W: Write,
    A: Encode<W> + SingularField,
    B: Encode<W> + SingularField
[src]