pub enum Definition {
Sequence {
elements: Declaration,
},
Struct {
fields: Vec<(FieldName, Declaration)>,
},
}
Expand description
The type that we use to represent the definition of the OBI type.
Variants§
Sequence
A sequence of elements of length known at the run time and the same-type elements.
Fields
§
elements: Declaration
Struct
A structure, structurally similar to a tuple.
Fields
§
fields: Vec<(FieldName, Declaration)>
Trait Implementations§
Source§impl Debug for Definition
impl Debug for Definition
Source§impl PartialEq for Definition
impl PartialEq for Definition
impl StructuralPartialEq for Definition
Auto Trait Implementations§
impl Freeze for Definition
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnwindSafe for Definition
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