pub struct Choice<T: CanonicalFixedSizedPod>(pub ChoiceFlags, pub ChoiceEnum<T>);
Expand description
the flags and choice of a choice pod.
Tuple Fields§
§0: ChoiceFlags
§1: ChoiceEnum<T>
Trait Implementations§
source§impl<T: PartialEq + CanonicalFixedSizedPod> PartialEq for Choice<T>
impl<T: PartialEq + CanonicalFixedSizedPod> PartialEq for Choice<T>
source§impl<'de> PodDeserialize<'de> for Choice<Fd>
impl<'de> PodDeserialize<'de> for Choice<Fd>
source§fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
Deserialize the type by using the provided
PodDeserializer
source§impl<'de> PodDeserialize<'de> for Choice<Id>
impl<'de> PodDeserialize<'de> for Choice<Id>
source§fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
Deserialize the type by using the provided
PodDeserializer
source§impl<'de> PodDeserialize<'de> for Choice<bool>
impl<'de> PodDeserialize<'de> for Choice<bool>
source§fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
Deserialize the type by using the provided
PodDeserializer
source§impl<'de> PodDeserialize<'de> for Choice<f32>
impl<'de> PodDeserialize<'de> for Choice<f32>
source§fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
Deserialize the type by using the provided
PodDeserializer
source§impl<'de> PodDeserialize<'de> for Choice<f64>
impl<'de> PodDeserialize<'de> for Choice<f64>
source§fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
Deserialize the type by using the provided
PodDeserializer
source§impl<'de> PodDeserialize<'de> for Choice<i32>
impl<'de> PodDeserialize<'de> for Choice<i32>
source§fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
Deserialize the type by using the provided
PodDeserializer
source§impl<'de> PodDeserialize<'de> for Choice<i64>
impl<'de> PodDeserialize<'de> for Choice<i64>
source§fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
Deserialize the type by using the provided
PodDeserializer
source§impl<'de> PodDeserialize<'de> for Choice<Fraction>
impl<'de> PodDeserialize<'de> for Choice<Fraction>
source§fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
Deserialize the type by using the provided
PodDeserializer
source§impl<'de> PodDeserialize<'de> for Choice<Rectangle>
impl<'de> PodDeserialize<'de> for Choice<Rectangle>
source§fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
Deserialize the type by using the provided
PodDeserializer
source§impl<T: CanonicalFixedSizedPod + FixedSizedPod> PodSerialize for Choice<T>
impl<T: CanonicalFixedSizedPod + FixedSizedPod> PodSerialize for Choice<T>
source§fn serialize<O: Write + Seek>(
&self,
serializer: PodSerializer<O>
) -> Result<SerializeSuccess<O>, GenError>
fn serialize<O: Write + Seek>( &self, serializer: PodSerializer<O> ) -> Result<SerializeSuccess<O>, GenError>
Serialize the type by using the provided
PodSerializer
impl<T: Eq + CanonicalFixedSizedPod> Eq for Choice<T>
impl<T: CanonicalFixedSizedPod> StructuralPartialEq for Choice<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Choice<T>where
T: RefUnwindSafe,
impl<T> Send for Choice<T>where
T: Send,
impl<T> Sync for Choice<T>where
T: Sync,
impl<T> Unpin for Choice<T>where
T: Unpin,
impl<T> UnwindSafe for Choice<T>where
T: UnwindSafe,
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