Struct moore_svlog::ast::Node[][src]

pub struct Node<'a, T> {
    pub id: NodeId,
    pub span: Span,
    pub parent: Cell<Option<&'a (dyn AnyNode<'a> + 'a)>>,
    pub order: Cell<usize>,
    pub data: T,
}
Expand description

Common denominator across all AST nodes.

Fields

id: NodeId

Unique ID assigned to the node.

span: Span

Full span the node covers in the input.

parent: Cell<Option<&'a (dyn AnyNode<'a> + 'a)>>

Parent node.

order: Cell<usize>

Lexical order of the node.

data: T

Per-node data.

Implementations

Create a new AST node.

Check if this is an implicit type.

Check if this is an implicit type.

Get the parent instantiation.

Trait Implementations

Walk a visitor over the contents of self.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Allocate a value of type T.

Automatically implement AnyNode for Node<T> if enough information is present.

Get this node’s unique ID.

Get this node’s span in the input.

Get this node’s lexical order.

Get this node’s parent.

Link up this node.

Link up this node as an expansion of another node. Read more

Get a span that is terse and suitable to pinpoint the node for a human.

Convert this node reference to a pointer for identity comparisons.

Automatically implement AnyNodeData for Node<T> if the inner node implements it.

Get this node’s name, or None if it does not have one.

Describe this node for diagnostics in indefinite form, e.g. “entity”. Read more

Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more

Describe this node for diagnostics in indefinite form, e.g. “entity”.

Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more

Describe this node for diagnostics in indefinite form, e.g. “entity”.

Describe this node for diagnostics in definite form, e.g. “entity ‘top’”. Read more

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Get the type name of the node.

Convert this node to the exhaustive AllNode enum.

Convert this node to an AnyNode trait object.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Allow any node to be debug-formatted.

Formats the value using the given formatter. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Allow any node to be printed in diagnostics in a human-friendly form.

Formats the value using the given formatter. Read more

Apply a function to each child node.

Apply a function to this node.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Obtain a human-readable descriptive name for this node.

Obtain a human-readable description for this node, possibly containing the node’s name. Read more

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

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_enum_name(self)
  • self.accept(visitor)
  • visitor.post_visit_enum_name(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_subroutine_port(self)
  • self.accept(visitor)
  • visitor.post_visit_subroutine_port(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_modport_port(self)
  • self.accept(visitor)
  • visitor.post_visit_modport_port(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_expr(self)
  • self.accept(visitor)
  • visitor.post_visit_expr(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_modport_name(self)
  • self.accept(visitor)
  • visitor.post_visit_modport_name(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_subroutine_decl(self)
  • self.accept(visitor)
  • visitor.post_visit_subroutine_decl(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_implicit_data_type(self)
  • self.accept(visitor)
  • visitor.post_visit_implicit_data_type(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_root(self)
  • self.accept(visitor)
  • visitor.post_visit_root(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_stmt(self)
  • self.accept(visitor)
  • visitor.post_visit_stmt(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_cont_assign(self)
  • self.accept(visitor)
  • visitor.post_visit_cont_assign(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_subroutine_prototype(self)
  • self.accept(visitor)
  • visitor.post_visit_subroutine_prototype(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_unpacked_dim(self)
  • self.accept(visitor)
  • visitor.post_visit_unpacked_dim(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_param_decl(self)
  • self.accept(visitor)
  • visitor.post_visit_param_decl(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_modport_simple_port(self)
  • self.accept(visitor)
  • visitor.post_visit_modport_simple_port(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_packed_dim(self)
  • self.accept(visitor)
  • visitor.post_visit_packed_dim(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_procedure(self)
  • self.accept(visitor)
  • visitor.post_visit_procedure(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_modport(self)
  • self.accept(visitor)
  • visitor.post_visit_modport(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_class_decl(self)
  • self.accept(visitor)
  • visitor.post_visit_class_decl(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_var_decl_name(self)
  • self.accept(visitor)
  • visitor.post_visit_var_decl_name(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_path_segment(self)
  • self.accept(visitor)
  • visitor.post_visit_path_segment(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_net_decl(self)
  • self.accept(visitor)
  • visitor.post_visit_net_decl(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_package(self)
  • self.accept(visitor)
  • visitor.post_visit_package(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_port_conn(self)
  • self.accept(visitor)
  • visitor.post_visit_port_conn(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_generate_if(self)
  • self.accept(visitor)
  • visitor.post_visit_generate_if(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_dpi_decl(self)
  • self.accept(visitor)
  • visitor.post_visit_dpi_decl(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_enum(self)
  • self.accept(visitor)
  • visitor.post_visit_enum(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_generate_for(self)
  • self.accept(visitor)
  • visitor.post_visit_generate_for(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_var_decl(self)
  • self.accept(visitor)
  • visitor.post_visit_var_decl(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_interface(self)
  • self.accept(visitor)
  • visitor.post_visit_interface(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_item(self)
  • self.accept(visitor)
  • visitor.post_visit_item(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_data_type(self)
  • self.accept(visitor)
  • visitor.post_visit_data_type(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_port_decl(self)
  • self.accept(visitor)
  • visitor.post_visit_port_decl(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_var_dim(self)
  • self.accept(visitor)
  • visitor.post_visit_var_dim(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_struct_member(self)
  • self.accept(visitor)
  • visitor.post_visit_struct_member(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_inst(self)
  • self.accept(visitor)
  • visitor.post_visit_inst(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_param_value_decl(self)
  • self.accept(visitor)
  • visitor.post_visit_param_value_decl(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_pattern_field(self)
  • self.accept(visitor)
  • visitor.post_visit_pattern_field(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_generate_case(self)
  • self.accept(visitor)
  • visitor.post_visit_generate_case(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_foreach_index(self)
  • self.accept(visitor)
  • visitor.post_visit_foreach_index(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_param_type_decl(self)
  • self.accept(visitor)
  • visitor.post_visit_param_type_decl(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_port(self)
  • self.accept(visitor)
  • visitor.post_visit_port(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_import_item(self)
  • self.accept(visitor)
  • visitor.post_visit_import_item(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_type(self)
  • self.accept(visitor)
  • visitor.post_visit_type(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_inst_name(self)
  • self.accept(visitor)
  • visitor.post_visit_inst_name(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_import_decl(self)
  • self.accept(visitor)
  • visitor.post_visit_import_decl(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_source_file(self)
  • self.accept(visitor)
  • visitor.post_visit_source_file(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_genvar_decl(self)
  • self.accept(visitor)
  • visitor.post_visit_genvar_decl(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_type_kind(self)
  • self.accept(visitor)
  • visitor.post_visit_type_kind(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_struct(self)
  • self.accept(visitor)
  • visitor.post_visit_struct(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_module(self)
  • self.accept(visitor)
  • visitor.post_visit_module(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_generate_block(self)
  • self.accept(visitor)
  • visitor.post_visit_generate_block(self);

Walk a visitor over self.

Calling this function is equivalent to calling:

  • visitor.pre_visit_typedef(self)
  • self.accept(visitor)
  • visitor.post_visit_typedef(self);

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.