Enum moore_svlog::ast::DataTypeData [−][src]
pub enum DataTypeData<'a> {
Int {
ty: Spanned<IntType>,
signing: Option<TypeSign>,
packed_dims: Vec<Node<'a, PackedDimData<'a>>, Global>,
},
Real(RealType),
Struct {
def: Node<'a, StructData<'a>>,
packed_dims: Vec<Node<'a, PackedDimData<'a>>, Global>,
},
Enum {
def: Node<'a, EnumData<'a>>,
packed_dims: Vec<Node<'a, PackedDimData<'a>>, Global>,
},
String,
Chandle,
Named {
path: Vec<Node<'a, PathSegmentData<'a>>, Global>,
packed_dims: Vec<Node<'a, PackedDimData<'a>>, Global>,
},
Event,
TypeRef(Box<TypeOrExpr<'a>, Global>),
}
Expand description
A data type.
From §A.2.2.1 (extended to be context-free):
data_type ::=
integer_vector_type signing? packed_dimension*
integer_atom_type signing?
non_integer_type
("struct"|"union") ("packed" signing?)? "{" struct_union_member+ "}" packed_dimension*
"enum" enum_base_type? "{" enum_name_declaration ("," enum_name_declaration)* "}" packed_dimension*
"string"
"chandle"
path_segment ("::" path_segment)* packed_dimension*
"event"
type_reference
path_segment ::=
"$unit"
package_identifier
class_identifier (param_value_assignment)?
type_identifier
Variants
An integer type, like bit
, logic signed
, reg signed [42:0]
, int
,
or int unsigned
.
Fields of Int
Real(RealType)
A real type.
Tuple Fields of Real
0: RealType
A struct or union type.
Fields of Struct
def: Node<'a, StructData<'a>>
packed_dims: Vec<Node<'a, PackedDimData<'a>>, Global>
An enum type.
A string
.
A chandle
.
A named type.
Fields of Named
path: Vec<Node<'a, PathSegmentData<'a>>, Global>
packed_dims: Vec<Node<'a, PackedDimData<'a>>, Global>
An event
.
TypeRef(Box<TypeOrExpr<'a>, Global>)
A type reference, like type(<type>)
or type(<expr>)
.
Tuple Fields of TypeRef
0: Box<TypeOrExpr<'a>, Global>
Trait Implementations
Get this node’s name, or None
if it does not have one.
Describe this node for diagnostics in indefinite form, e.g. “entity”. Read more
Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more
Describe this node for diagnostics in indefinite form, e.g. “entity”.
Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more
Describe this node for diagnostics in indefinite form, e.g. “entity”.
Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more
Apply a function to each child node.
Apply a function to this node.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for DataTypeData<'a>
impl<'a> Send for DataTypeData<'a>
impl<'a> Sync for DataTypeData<'a>
impl<'a> Unpin for DataTypeData<'a>
impl<'a> !UnwindSafe for DataTypeData<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more