Enum concordium_std::schema::Fields [−][src]
Expand description
Schema for the fields of a struct or some enum variant.
Variants
Named(Vec<(String, Type), Global>)
Named fields, e.g., struct Foo {x: u64, y: u32}
.
Unnamed(Vec<Type, Global>)
Unnamed fields, e.g., struct Foo(u64, u32)
None
No fields. Note that this is distinct from an empty set of named or
unnamed fields. That is, in Rust there is a (albeit trivial) difference
between struct Foo {}
, struct Foo
, and struct Foo()
, all of which
are valid, but will have different representations.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Fields
impl UnwindSafe for Fields
Blanket Implementations
Mutably borrows from an owned value. Read more