pub struct TypeAst {
pub meta: TypeMeta,
pub code: TypeCode,
pub name: String,
pub value: i64,
pub value_string: String,
pub elements: Vec<TypeAst>,
}Expand description
Abstract Syntax Tree for a type definition
Mirrors C++ struct TypeAst
Fields§
§meta: TypeMetaType’s category
code: TypeCodeType code
name: StringType’s name
value: i64Value associated with the node (for fixed-width types and enum values)
value_string: StringString value (for timezone, enum names, etc.)
elements: Vec<TypeAst>Sub-elements of the type (for composite types, enum items)
Trait Implementations§
impl StructuralPartialEq for TypeAst
Auto Trait Implementations§
impl Freeze for TypeAst
impl RefUnwindSafe for TypeAst
impl Send for TypeAst
impl Sync for TypeAst
impl Unpin for TypeAst
impl UnwindSafe for TypeAst
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