Enum moore_svlog::ty::UnpackedCore [−][src]
pub enum UnpackedCore<'a> {
Error,
Packed(&'a PackedType<'a>),
Real(RealType),
Struct(StructType<'a>),
String,
Chandle,
Event,
Named {
name: Spanned<Name>,
ty: &'a UnpackedType<'a>,
},
Ref {
span: Span,
ty: &'a UnpackedType<'a>,
},
Module(ModuleType<'a>),
Interface(InterfaceType<'a>),
}
Expand description
A core unpacked type.
Variants
An error occurred during type computation.
Packed(&'a PackedType<'a>)
A packed type.
Tuple Fields of Packed
0: &'a PackedType<'a>
Real(RealType)
A real type.
Tuple Fields of Real
0: RealType
Struct(StructType<'a>)
A unpacked struct.
Tuple Fields of Struct
0: StructType<'a>
A string.
A chandle.
An event.
A named type.
Fields of Named
name: Spanned<Name>
How the user originally called the type.
ty: &'a UnpackedType<'a>
The type this name expands to.
A type reference.
Fields of Ref
span: Span
Location of the type(...)
in the source file.
ty: &'a UnpackedType<'a>
The type that this reference expands to.
Module(ModuleType<'a>)
A module instance.
Tuple Fields of Module
0: ModuleType<'a>
Interface(InterfaceType<'a>)
An interface instance.
Tuple Fields of Interface
0: InterfaceType<'a>
Implementations
Check if this type is identical to another one.
Check if this type is strictly identical to another one.
If this type is strictly a packed type, convert it.
Get the underlying struct, or None
if the type is no struct.
Get the underlying enum, or None
if the type is no enum.
Get the underlying module, or None
if the type is not a module.
Get the underlying interface, or None
if the type is not a interface.
Trait Implementations
Performs the conversion.
Performs the conversion.
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 UnpackedCore<'a>
impl<'a> Send for UnpackedCore<'a>
impl<'a> Sync for UnpackedCore<'a>
impl<'a> Unpin for UnpackedCore<'a>
impl<'a> !UnwindSafe for UnpackedCore<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more