pub enum PStructKind {
Struct {
fields: Vec<PStructField>,
},
TupleStruct {
fields: Vec<PStructField>,
},
UnitStruct,
}Expand description
Parsed struct kind, modeled after StructKind.
Variants§
Struct
A regular struct with named fields.
Fields
§
fields: Vec<PStructField>The struct fields
TupleStruct
A tuple struct.
Fields
§
fields: Vec<PStructField>The tuple fields
UnitStruct
A unit struct.
Implementations§
Source§impl PStructKind
impl PStructKind
Sourcepub fn parse(kind: &StructKind, rename_all_rule: Option<RenameRule>) -> Self
pub fn parse(kind: &StructKind, rename_all_rule: Option<RenameRule>) -> Self
Parse a crate::StructKind into a PStructKind.
Passes rename_all_rule through to all PStructField parsing.