Struct aldrin_core::Enum
source · pub struct Enum {
pub variant: u32,
pub value: Value,
}
Fields§
§variant: u32
§value: Value
Implementations§
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for Enum
impl<'arbitrary> Arbitrary<'arbitrary> for Enum
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Deserialize for Enum
impl Deserialize for Enum
fn deserialize( deserializer: Deserializer<'_, '_> ) -> Result<Self, DeserializeError>
source§impl PartialEq for Enum
impl PartialEq for Enum
source§impl Serialize for Enum
impl Serialize for Enum
fn serialize(&self, serializer: Serializer<'_>) -> Result<(), SerializeError>
impl StructuralPartialEq for Enum
Auto Trait Implementations§
impl Freeze for Enum
impl RefUnwindSafe for Enum
impl Send for Enum
impl Sync for Enum
impl Unpin for Enum
impl UnwindSafe for Enum
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