pub enum Choice3<T1, T2, T3> {
ChoiceA(T1),
ChoiceB(T2),
ChoiceC(T3),
}
Expand description
Represents an ASN.1 CHOICE
with the provided number of potential types.
If you need more variants than are provided, please file an issue or submit a pull request!
Variants§
Trait Implementations§
source§impl<'a, T1: Asn1Readable<'a>, T2: Asn1Readable<'a>, T3: Asn1Readable<'a>> Asn1Readable<'a> for Choice3<T1, T2, T3>
impl<'a, T1: Asn1Readable<'a>, T2: Asn1Readable<'a>, T3: Asn1Readable<'a>> Asn1Readable<'a> for Choice3<T1, T2, T3>
source§impl<T1: Asn1Writable, T2: Asn1Writable, T3: Asn1Writable> Asn1Writable for Choice3<T1, T2, T3>
impl<T1: Asn1Writable, T2: Asn1Writable, T3: Asn1Writable> Asn1Writable for Choice3<T1, T2, T3>
fn write(&self, w: &mut Writer<'_>) -> WriteResult
source§impl<T1: PartialEq, T2: PartialEq, T3: PartialEq> PartialEq for Choice3<T1, T2, T3>
impl<T1: PartialEq, T2: PartialEq, T3: PartialEq> PartialEq for Choice3<T1, T2, T3>
impl<T1: Eq, T2: Eq, T3: Eq> Eq for Choice3<T1, T2, T3>
impl<T1, T2, T3> StructuralPartialEq for Choice3<T1, T2, T3>
Auto Trait Implementations§
impl<T1, T2, T3> RefUnwindSafe for Choice3<T1, T2, T3>
impl<T1, T2, T3> Send for Choice3<T1, T2, T3>
impl<T1, T2, T3> Sync for Choice3<T1, T2, T3>
impl<T1, T2, T3> Unpin for Choice3<T1, T2, T3>
impl<T1, T2, T3> UnwindSafe for Choice3<T1, T2, T3>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more