pub enum TypeDecision {
Struct(StructDef),
LeafStruct(LeafStructDef),
SupertypeEnum(SupertypeEnumDef),
}Expand description
What Rust type to emit for a top-level node.
Variants§
Struct(StructDef)
A named node with fields and/or children → emit a struct.
LeafStruct(LeafStructDef)
A named terminal node (no fields, no children, no subtypes) → emit a leaf struct.
SupertypeEnum(SupertypeEnumDef)
A supertype node (has subtypes) → emit an enum.
Trait Implementations§
Source§impl Clone for TypeDecision
impl Clone for TypeDecision
Source§fn clone(&self) -> TypeDecision
fn clone(&self) -> TypeDecision
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for TypeDecision
impl RefUnwindSafe for TypeDecision
impl !Send for TypeDecision
impl !Sync for TypeDecision
impl Unpin for TypeDecision
impl UnsafeUnpin for TypeDecision
impl UnwindSafe for TypeDecision
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