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

Error

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>
String

A string.

Chandle

A chandle.

Event

An event.

Named

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.

Ref

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 is a tombstone.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.