[][src]Enum moore_svlog::hir::TypeKind

pub enum TypeKind {
    Implicit,
    Builtin(BuiltinType),
    Named(Spanned<Name>),
    Struct(Vec<NodeId>),
    PackedArray(Box<TypeKind>, NodeIdNodeId),
    Scope(NodeIdSpanned<Name>),
    Enum(Vec<(Spanned<Name>, NodeId)>, Option<NodeId>),
}

The different forms a type can take.

Variants

Implicit

An implicit type.

Builtin(BuiltinType)

A builtin type.

Named(Spanned<Name>)

A named type.

Struct(Vec<NodeId>)

A struct or union type.

PackedArray(Box<TypeKind>, NodeIdNodeId)

A packed array such as bit [31:0].

Represented as (inner_type, range_lhs, range_rhs).

Scope(NodeIdSpanned<Name>)

A scope access such as foo::bar.

An enum type.

Each element in the vector refers to a EnumVariant. The optional field indicates the representation type.

Trait Implementations

impl Clone for TypeKind[src]

impl Debug for TypeKind[src]

impl Eq for TypeKind[src]

impl HasDesc for TypeKind[src]

impl PartialEq<TypeKind> for TypeKind[src]

impl StructuralEq for TypeKind[src]

impl StructuralPartialEq for TypeKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.