pub struct AddContext<'sbc, 'lazy: 'sbc, 'sb: 'lazy, 'ast: 'sb, 'ctx: 'sb> {
    pub ctx: &'sbc ScoreContext<'lazy, 'sb, 'ast, 'ctx>,
    pub scope: ScopeRef,
}
Expand description

A context within which nodes can be added.

See the module documentation for details.

Fields

ctx: &'sbc ScoreContext<'lazy, 'sb, 'ast, 'ctx>

The outer context.

scope: ScopeRef

The scope to which items will be added.

Implementations

Create a new context.

Create a new context with different scope.

Create a new context for describing a node.

Emit a diagnostic that a node is not implemented.

Add an optional node.

This convenience function performs a few things at a time. First it applies a closure f to the value of an option, returning an error if the closure returns one. Otherwise it wraps the result in an option and returns it.

Add an expression.

Add an expression already lowered to HIR.

Schedule expression tasks.

Add a list of choices.

Add a discrete range.

Add an aggregate already lowered to HIR.

Schedule aggregate tasks.

Add a subtype indication.

Add a subtype indication already lowered to HIR.

Schedule subtype indication tasks.

Add a constant declaration.

Add a signal declaration.

Add a variable declaration.

Add a file declaration.

Add multiple sequential statements.

Add a sequential statement.

Add a wait statement.

Add an assert statement.

Add a report statement.

Add a sig_assign statement.

Add a var_assign statement.

Add a call statement.

Add an if statement.

Add a case statement.

Add a while loop statement.

Add a next statement.

Add a return statement.

Add a null statement.

Add a sensitivity list.

Add a label.

Immediately resolves the label name and returns the corresponding statement.

Add a target variable.

This is an target for a variable assignment.

Add a type declaration.

Add a type definition.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Emit a diagnostic message.

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)

Uses borrowed data to replace owned data, usually by cloning. 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.