Struct moore_svlog::resolver::Scope[][src]

pub struct Scope<'a> {
    pub node: &'a dyn ScopedNode<'a>,
    pub parent: Option<&'a dyn ScopedNode<'a>>,
    pub defs: HashMap<Name, Def<'a>>,
    pub wildcard_imports: Vec<&'a ImportItem<'a>>,
    pub subscopes: Vec<&'a dyn ScopedNode<'a>>,
}
Expand description

A scope.

Fields

node: &'a dyn ScopedNode<'a>

The node which generates this scope.

parent: Option<&'a dyn ScopedNode<'a>>

The node which generates the parent scope, if any.

defs: HashMap<Name, Def<'a>>

The definitions in this scope.

wildcard_imports: Vec<&'a ImportItem<'a>>

The wildcard imports in this scope.

subscopes: Vec<&'a dyn ScopedNode<'a>>

The subscopes.

Trait Implementations

Formats the value using the given formatter. Read more

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