pub struct Id(pub u32);
Expand description
An enumerated value in a pod
Tuple Fields§
§0: u32
Trait Implementations§
source§impl<'de> PodDeserialize<'de> for Id
impl<'de> PodDeserialize<'de> for 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
impl CanonicalFixedSizedPod for Id
impl Copy for Id
impl Eq for Id
impl StructuralPartialEq for Id
Auto Trait Implementations§
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnwindSafe for Id
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
source§impl<T> FixedSizedPod for Twhere
T: CanonicalFixedSizedPod + Copy,
impl<T> FixedSizedPod for Twhere
T: CanonicalFixedSizedPod + Copy,
§type CanonicalType = T
type CanonicalType = T
The canonical representation of the type of pod that should be serialized to/deserialized from.
source§fn as_canonical_type(&self) -> <T as FixedSizedPod>::CanonicalType
fn as_canonical_type(&self) -> <T as FixedSizedPod>::CanonicalType
Convert
self
to the canonical type.source§fn from_canonical_type(canonical: &<T as FixedSizedPod>::CanonicalType) -> T
fn from_canonical_type(canonical: &<T as FixedSizedPod>::CanonicalType) -> T
Convert the canonical type to
Self
.source§impl<T> PodSerialize for Twhere
T: FixedSizedPod,
impl<T> PodSerialize for Twhere
T: FixedSizedPod,
source§fn serialize<O>(
&self,
serializer: PodSerializer<O>
) -> Result<SerializeSuccess<O>, GenError>
fn serialize<O>( &self, serializer: PodSerializer<O> ) -> Result<SerializeSuccess<O>, GenError>
Serialize the type by using the provided
PodSerializer