pub enum StructFieldInformation {
Native,
Declared(Vec<FieldDefinition>),
}
Expand description
StructFieldInformation
indicates whether a struct is native or has user-specified fields
Variants§
Native
Declared(Vec<FieldDefinition>)
Trait Implementations§
source§impl Arbitrary for StructFieldInformation
impl Arbitrary for StructFieldInformation
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = TupleUnion<((u32, Arc<fn() -> StructFieldInformation>), (u32, Arc<Map<<Vec<FieldDefinition, Global> as Arbitrary>::Strategy, fn(_: Vec<FieldDefinition, Global>) -> StructFieldInformation>>))>
type Strategy = TupleUnion<((u32, Arc<fn() -> StructFieldInformation>), (u32, Arc<Map<<Vec<FieldDefinition, Global> as Arbitrary>::Strategy, fn(_: Vec<FieldDefinition, Global>) -> StructFieldInformation>>))>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl Clone for StructFieldInformation
impl Clone for StructFieldInformation
source§fn clone(&self) -> StructFieldInformation
fn clone(&self) -> StructFieldInformation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StructFieldInformation
impl Debug for StructFieldInformation
source§impl PartialEq<StructFieldInformation> for StructFieldInformation
impl PartialEq<StructFieldInformation> for StructFieldInformation
source§fn eq(&self, other: &StructFieldInformation) -> bool
fn eq(&self, other: &StructFieldInformation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.