Struct moore_svlog::ty::StructType [−][src]
pub struct StructType<'a> {
pub ast: &'a Struct<'a>,
pub ast_type: &'a Type<'a>,
pub kind: StructKind,
pub members: Vec<StructMember<'a>>,
}
Expand description
A struct type.
This represents both packed and unpacked structs. Which one it is depends on
whether this struct is embedded in a PackedType
or UnpackedType
. For the
packed version the struct inherits its sign from its parent PackedType
.
Fields
ast: &'a Struct<'a>
The corresponding AST node of this struct definition.
ast_type: &'a Type<'a>
The AST node of the corresponding type.
kind: StructKind
Whether this is a struct
, union
or union tagged
.
members: Vec<StructMember<'a>>
The list of members.
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
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 StructType<'a>
impl<'a> Send for StructType<'a>
impl<'a> Sync for StructType<'a>
impl<'a> Unpin for StructType<'a>
impl<'a> !UnwindSafe for StructType<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more