AllNode

Enum AllNode 

Source
pub enum AllNode<'a> {
Show 54 variants Root(&'a Root<'a>), SourceFile(&'a SourceFile<'a>), Item(&'a Item<'a>), Module(&'a Module<'a>), Interface(&'a Interface<'a>), Package(&'a Package<'a>), Type(&'a Type<'a>), TypeKind(&'a TypeKind<'a>), Enum(&'a Enum<'a>), EnumName(&'a EnumName<'a>), Struct(&'a Struct<'a>), StructMember(&'a StructMember<'a>), Port(&'a Port<'a>), PortDecl(&'a PortDecl<'a>), Procedure(&'a Procedure<'a>), Stmt(&'a Stmt<'a>), VarDecl(&'a VarDecl<'a>), VarDeclName(&'a VarDeclName<'a>), GenvarDecl(&'a GenvarDecl<'a>), ForeachIndex(&'a ForeachIndex<'a>), Expr(&'a Expr<'a>), CallArg(&'a CallArg<'a>), ClassDecl(&'a ClassDecl<'a>), Typedef(&'a Typedef<'a>), SubroutineDecl(&'a SubroutineDecl<'a>), SubroutinePrototype(&'a SubroutinePrototype<'a>), SubroutinePort(&'a SubroutinePort<'a>), SubroutinePortDecl(&'a SubroutinePortDecl<'a>), NetDecl(&'a NetDecl<'a>), PatternField(&'a PatternField<'a>), ImportDecl(&'a ImportDecl<'a>), ImportItem(&'a ImportItem<'a>), Inst(&'a Inst<'a>), InstName(&'a InstName<'a>), Modport(&'a Modport<'a>), ModportName(&'a ModportName<'a>), ModportPort(&'a ModportPort<'a>), ModportSimplePort(&'a ModportSimplePort<'a>), ParamDecl(&'a ParamDecl<'a>), ParamTypeDecl(&'a ParamTypeDecl<'a>), ParamValueDecl(&'a ParamValueDecl<'a>), ContAssign(&'a ContAssign<'a>), GenerateFor(&'a GenerateFor<'a>), GenerateIf(&'a GenerateIf<'a>), GenerateCase(&'a GenerateCase<'a>), GenerateBlock(&'a GenerateBlock<'a>), PortConn(&'a PortConn<'a>), DpiDecl(&'a DpiDecl<'a>), DataType(&'a DataType<'a>), ImplicitDataType(&'a ImplicitDataType<'a>), VarDim(&'a VarDim<'a>), PackedDim(&'a PackedDim<'a>), UnpackedDim(&'a UnpackedDim<'a>), PathSegment(&'a PathSegment<'a>),
}
Expand description

An exhaustive list of all nodes.

Variants§

§

Root(&'a Root<'a>)

§

SourceFile(&'a SourceFile<'a>)

§

Item(&'a Item<'a>)

§

Module(&'a Module<'a>)

§

Interface(&'a Interface<'a>)

§

Package(&'a Package<'a>)

§

Type(&'a Type<'a>)

§

TypeKind(&'a TypeKind<'a>)

§

Enum(&'a Enum<'a>)

§

EnumName(&'a EnumName<'a>)

§

Struct(&'a Struct<'a>)

§

StructMember(&'a StructMember<'a>)

§

Port(&'a Port<'a>)

§

PortDecl(&'a PortDecl<'a>)

§

Procedure(&'a Procedure<'a>)

§

Stmt(&'a Stmt<'a>)

§

VarDecl(&'a VarDecl<'a>)

§

VarDeclName(&'a VarDeclName<'a>)

§

GenvarDecl(&'a GenvarDecl<'a>)

§

ForeachIndex(&'a ForeachIndex<'a>)

§

Expr(&'a Expr<'a>)

§

CallArg(&'a CallArg<'a>)

§

ClassDecl(&'a ClassDecl<'a>)

§

Typedef(&'a Typedef<'a>)

§

SubroutineDecl(&'a SubroutineDecl<'a>)

§

SubroutinePrototype(&'a SubroutinePrototype<'a>)

§

SubroutinePort(&'a SubroutinePort<'a>)

§

SubroutinePortDecl(&'a SubroutinePortDecl<'a>)

§

NetDecl(&'a NetDecl<'a>)

§

PatternField(&'a PatternField<'a>)

§

ImportDecl(&'a ImportDecl<'a>)

§

ImportItem(&'a ImportItem<'a>)

§

Inst(&'a Inst<'a>)

§

InstName(&'a InstName<'a>)

§

Modport(&'a Modport<'a>)

§

ModportName(&'a ModportName<'a>)

§

ModportPort(&'a ModportPort<'a>)

§

ModportSimplePort(&'a ModportSimplePort<'a>)

§

ParamDecl(&'a ParamDecl<'a>)

§

ParamTypeDecl(&'a ParamTypeDecl<'a>)

§

ParamValueDecl(&'a ParamValueDecl<'a>)

§

ContAssign(&'a ContAssign<'a>)

§

GenerateFor(&'a GenerateFor<'a>)

§

GenerateIf(&'a GenerateIf<'a>)

§

GenerateCase(&'a GenerateCase<'a>)

§

GenerateBlock(&'a GenerateBlock<'a>)

§

PortConn(&'a PortConn<'a>)

§

DpiDecl(&'a DpiDecl<'a>)

§

DataType(&'a DataType<'a>)

§

ImplicitDataType(&'a ImplicitDataType<'a>)

§

VarDim(&'a VarDim<'a>)

§

PackedDim(&'a PackedDim<'a>)

§

UnpackedDim(&'a UnpackedDim<'a>)

§

PathSegment(&'a PathSegment<'a>)

Implementations§

Source§

impl<'a> AllNode<'a>

Source

pub fn get_root(self) -> Option<&'a Root<'a>>

Get the underlying Root, or None if the node is not a Root.

Source

pub fn get_source_file(self) -> Option<&'a SourceFile<'a>>

Get the underlying SourceFile, or None if the node is not a SourceFile.

Source

pub fn get_item(self) -> Option<&'a Item<'a>>

Get the underlying Item, or None if the node is not a Item.

Source

pub fn get_module(self) -> Option<&'a Module<'a>>

Get the underlying Module, or None if the node is not a Module.

Source

pub fn get_interface(self) -> Option<&'a Interface<'a>>

Get the underlying Interface, or None if the node is not a Interface.

Source

pub fn get_package(self) -> Option<&'a Package<'a>>

Get the underlying Package, or None if the node is not a Package.

Source

pub fn get_type(self) -> Option<&'a Type<'a>>

Get the underlying Type, or None if the node is not a Type.

Source

pub fn get_type_kind(self) -> Option<&'a TypeKind<'a>>

Get the underlying TypeKind, or None if the node is not a TypeKind.

Source

pub fn get_enum(self) -> Option<&'a Enum<'a>>

Get the underlying Enum, or None if the node is not a Enum.

Source

pub fn get_enum_name(self) -> Option<&'a EnumName<'a>>

Get the underlying EnumName, or None if the node is not a EnumName.

Source

pub fn get_struct(self) -> Option<&'a Struct<'a>>

Get the underlying Struct, or None if the node is not a Struct.

Source

pub fn get_struct_member(self) -> Option<&'a StructMember<'a>>

Get the underlying StructMember, or None if the node is not a StructMember.

Source

pub fn get_port(self) -> Option<&'a Port<'a>>

Get the underlying Port, or None if the node is not a Port.

Source

pub fn get_port_decl(self) -> Option<&'a PortDecl<'a>>

Get the underlying PortDecl, or None if the node is not a PortDecl.

Source

pub fn get_procedure(self) -> Option<&'a Procedure<'a>>

Get the underlying Procedure, or None if the node is not a Procedure.

Source

pub fn get_stmt(self) -> Option<&'a Stmt<'a>>

Get the underlying Stmt, or None if the node is not a Stmt.

Source

pub fn get_var_decl(self) -> Option<&'a VarDecl<'a>>

Get the underlying VarDecl, or None if the node is not a VarDecl.

Source

pub fn get_var_decl_name(self) -> Option<&'a VarDeclName<'a>>

Get the underlying VarDeclName, or None if the node is not a VarDeclName.

Source

pub fn get_genvar_decl(self) -> Option<&'a GenvarDecl<'a>>

Get the underlying GenvarDecl, or None if the node is not a GenvarDecl.

Source

pub fn get_foreach_index(self) -> Option<&'a ForeachIndex<'a>>

Get the underlying ForeachIndex, or None if the node is not a ForeachIndex.

Source

pub fn get_expr(self) -> Option<&'a Expr<'a>>

Get the underlying Expr, or None if the node is not a Expr.

Source

pub fn get_call_arg(self) -> Option<&'a CallArg<'a>>

Get the underlying CallArg, or None if the node is not a CallArg.

Source

pub fn get_class_decl(self) -> Option<&'a ClassDecl<'a>>

Get the underlying ClassDecl, or None if the node is not a ClassDecl.

Source

pub fn get_typedef(self) -> Option<&'a Typedef<'a>>

Get the underlying Typedef, or None if the node is not a Typedef.

Source

pub fn get_subroutine_decl(self) -> Option<&'a SubroutineDecl<'a>>

Get the underlying SubroutineDecl, or None if the node is not a SubroutineDecl.

Source

pub fn get_subroutine_prototype(self) -> Option<&'a SubroutinePrototype<'a>>

Get the underlying SubroutinePrototype, or None if the node is not a SubroutinePrototype.

Source

pub fn get_subroutine_port(self) -> Option<&'a SubroutinePort<'a>>

Get the underlying SubroutinePort, or None if the node is not a SubroutinePort.

Source

pub fn get_subroutine_port_decl(self) -> Option<&'a SubroutinePortDecl<'a>>

Get the underlying SubroutinePortDecl, or None if the node is not a SubroutinePortDecl.

Source

pub fn get_net_decl(self) -> Option<&'a NetDecl<'a>>

Get the underlying NetDecl, or None if the node is not a NetDecl.

Source

pub fn get_pattern_field(self) -> Option<&'a PatternField<'a>>

Get the underlying PatternField, or None if the node is not a PatternField.

Source

pub fn get_import_decl(self) -> Option<&'a ImportDecl<'a>>

Get the underlying ImportDecl, or None if the node is not a ImportDecl.

Source

pub fn get_import_item(self) -> Option<&'a ImportItem<'a>>

Get the underlying ImportItem, or None if the node is not a ImportItem.

Source

pub fn get_inst(self) -> Option<&'a Inst<'a>>

Get the underlying Inst, or None if the node is not a Inst.

Source

pub fn get_inst_name(self) -> Option<&'a InstName<'a>>

Get the underlying InstName, or None if the node is not a InstName.

Source

pub fn get_modport(self) -> Option<&'a Modport<'a>>

Get the underlying Modport, or None if the node is not a Modport.

Source

pub fn get_modport_name(self) -> Option<&'a ModportName<'a>>

Get the underlying ModportName, or None if the node is not a ModportName.

Source

pub fn get_modport_port(self) -> Option<&'a ModportPort<'a>>

Get the underlying ModportPort, or None if the node is not a ModportPort.

Source

pub fn get_modport_simple_port(self) -> Option<&'a ModportSimplePort<'a>>

Get the underlying ModportSimplePort, or None if the node is not a ModportSimplePort.

Source

pub fn get_param_decl(self) -> Option<&'a ParamDecl<'a>>

Get the underlying ParamDecl, or None if the node is not a ParamDecl.

Source

pub fn get_param_type_decl(self) -> Option<&'a ParamTypeDecl<'a>>

Get the underlying ParamTypeDecl, or None if the node is not a ParamTypeDecl.

Source

pub fn get_param_value_decl(self) -> Option<&'a ParamValueDecl<'a>>

Get the underlying ParamValueDecl, or None if the node is not a ParamValueDecl.

Source

pub fn get_cont_assign(self) -> Option<&'a ContAssign<'a>>

Get the underlying ContAssign, or None if the node is not a ContAssign.

Source

pub fn get_generate_for(self) -> Option<&'a GenerateFor<'a>>

Get the underlying GenerateFor, or None if the node is not a GenerateFor.

Source

pub fn get_generate_if(self) -> Option<&'a GenerateIf<'a>>

Get the underlying GenerateIf, or None if the node is not a GenerateIf.

Source

pub fn get_generate_case(self) -> Option<&'a GenerateCase<'a>>

Get the underlying GenerateCase, or None if the node is not a GenerateCase.

Source

pub fn get_generate_block(self) -> Option<&'a GenerateBlock<'a>>

Get the underlying GenerateBlock, or None if the node is not a GenerateBlock.

Source

pub fn get_port_conn(self) -> Option<&'a PortConn<'a>>

Get the underlying PortConn, or None if the node is not a PortConn.

Source

pub fn get_dpi_decl(self) -> Option<&'a DpiDecl<'a>>

Get the underlying DpiDecl, or None if the node is not a DpiDecl.

Source

pub fn get_data_type(self) -> Option<&'a DataType<'a>>

Get the underlying DataType, or None if the node is not a DataType.

Source

pub fn get_implicit_data_type(self) -> Option<&'a ImplicitDataType<'a>>

Get the underlying ImplicitDataType, or None if the node is not a ImplicitDataType.

Source

pub fn get_var_dim(self) -> Option<&'a VarDim<'a>>

Get the underlying VarDim, or None if the node is not a VarDim.

Source

pub fn get_packed_dim(self) -> Option<&'a PackedDim<'a>>

Get the underlying PackedDim, or None if the node is not a PackedDim.

Source

pub fn get_unpacked_dim(self) -> Option<&'a UnpackedDim<'a>>

Get the underlying UnpackedDim, or None if the node is not a UnpackedDim.

Source

pub fn get_path_segment(self) -> Option<&'a PathSegment<'a>>

Get the underlying PathSegment, or None if the node is not a PathSegment.

Source

pub fn is_root(self) -> bool

Check whether this is a Root node.

Source

pub fn is_source_file(self) -> bool

Check whether this is a SourceFile node.

Source

pub fn is_item(self) -> bool

Check whether this is a Item node.

Source

pub fn is_module(self) -> bool

Check whether this is a Module node.

Source

pub fn is_interface(self) -> bool

Check whether this is a Interface node.

Source

pub fn is_package(self) -> bool

Check whether this is a Package node.

Source

pub fn is_type(self) -> bool

Check whether this is a Type node.

Source

pub fn is_type_kind(self) -> bool

Check whether this is a TypeKind node.

Source

pub fn is_enum(self) -> bool

Check whether this is a Enum node.

Source

pub fn is_enum_name(self) -> bool

Check whether this is a EnumName node.

Source

pub fn is_struct(self) -> bool

Check whether this is a Struct node.

Source

pub fn is_struct_member(self) -> bool

Check whether this is a StructMember node.

Source

pub fn is_port(self) -> bool

Check whether this is a Port node.

Source

pub fn is_port_decl(self) -> bool

Check whether this is a PortDecl node.

Source

pub fn is_procedure(self) -> bool

Check whether this is a Procedure node.

Source

pub fn is_stmt(self) -> bool

Check whether this is a Stmt node.

Source

pub fn is_var_decl(self) -> bool

Check whether this is a VarDecl node.

Source

pub fn is_var_decl_name(self) -> bool

Check whether this is a VarDeclName node.

Source

pub fn is_genvar_decl(self) -> bool

Check whether this is a GenvarDecl node.

Source

pub fn is_foreach_index(self) -> bool

Check whether this is a ForeachIndex node.

Source

pub fn is_expr(self) -> bool

Check whether this is a Expr node.

Source

pub fn is_call_arg(self) -> bool

Check whether this is a CallArg node.

Source

pub fn is_class_decl(self) -> bool

Check whether this is a ClassDecl node.

Source

pub fn is_typedef(self) -> bool

Check whether this is a Typedef node.

Source

pub fn is_subroutine_decl(self) -> bool

Check whether this is a SubroutineDecl node.

Source

pub fn is_subroutine_prototype(self) -> bool

Check whether this is a SubroutinePrototype node.

Source

pub fn is_subroutine_port(self) -> bool

Check whether this is a SubroutinePort node.

Source

pub fn is_subroutine_port_decl(self) -> bool

Check whether this is a SubroutinePortDecl node.

Source

pub fn is_net_decl(self) -> bool

Check whether this is a NetDecl node.

Source

pub fn is_pattern_field(self) -> bool

Check whether this is a PatternField node.

Source

pub fn is_import_decl(self) -> bool

Check whether this is a ImportDecl node.

Source

pub fn is_import_item(self) -> bool

Check whether this is a ImportItem node.

Source

pub fn is_inst(self) -> bool

Check whether this is a Inst node.

Source

pub fn is_inst_name(self) -> bool

Check whether this is a InstName node.

Source

pub fn is_modport(self) -> bool

Check whether this is a Modport node.

Source

pub fn is_modport_name(self) -> bool

Check whether this is a ModportName node.

Source

pub fn is_modport_port(self) -> bool

Check whether this is a ModportPort node.

Source

pub fn is_modport_simple_port(self) -> bool

Check whether this is a ModportSimplePort node.

Source

pub fn is_param_decl(self) -> bool

Check whether this is a ParamDecl node.

Source

pub fn is_param_type_decl(self) -> bool

Check whether this is a ParamTypeDecl node.

Source

pub fn is_param_value_decl(self) -> bool

Check whether this is a ParamValueDecl node.

Source

pub fn is_cont_assign(self) -> bool

Check whether this is a ContAssign node.

Source

pub fn is_generate_for(self) -> bool

Check whether this is a GenerateFor node.

Source

pub fn is_generate_if(self) -> bool

Check whether this is a GenerateIf node.

Source

pub fn is_generate_case(self) -> bool

Check whether this is a GenerateCase node.

Source

pub fn is_generate_block(self) -> bool

Check whether this is a GenerateBlock node.

Source

pub fn is_port_conn(self) -> bool

Check whether this is a PortConn node.

Source

pub fn is_dpi_decl(self) -> bool

Check whether this is a DpiDecl node.

Source

pub fn is_data_type(self) -> bool

Check whether this is a DataType node.

Source

pub fn is_implicit_data_type(self) -> bool

Check whether this is a ImplicitDataType node.

Source

pub fn is_var_dim(self) -> bool

Check whether this is a VarDim node.

Source

pub fn is_packed_dim(self) -> bool

Check whether this is a PackedDim node.

Source

pub fn is_unpacked_dim(self) -> bool

Check whether this is a UnpackedDim node.

Source

pub fn is_path_segment(self) -> bool

Check whether this is a PathSegment node.

Source

pub fn unwrap_root(self) -> &'a Root<'a>

Get the underlying Root, or panic if the node is not a Root.

Source

pub fn unwrap_source_file(self) -> &'a SourceFile<'a>

Get the underlying SourceFile, or panic if the node is not a SourceFile.

Source

pub fn unwrap_item(self) -> &'a Item<'a>

Get the underlying Item, or panic if the node is not a Item.

Source

pub fn unwrap_module(self) -> &'a Module<'a>

Get the underlying Module, or panic if the node is not a Module.

Source

pub fn unwrap_interface(self) -> &'a Interface<'a>

Get the underlying Interface, or panic if the node is not a Interface.

Source

pub fn unwrap_package(self) -> &'a Package<'a>

Get the underlying Package, or panic if the node is not a Package.

Source

pub fn unwrap_type(self) -> &'a Type<'a>

Get the underlying Type, or panic if the node is not a Type.

Source

pub fn unwrap_type_kind(self) -> &'a TypeKind<'a>

Get the underlying TypeKind, or panic if the node is not a TypeKind.

Source

pub fn unwrap_enum(self) -> &'a Enum<'a>

Get the underlying Enum, or panic if the node is not a Enum.

Source

pub fn unwrap_enum_name(self) -> &'a EnumName<'a>

Get the underlying EnumName, or panic if the node is not a EnumName.

Source

pub fn unwrap_struct(self) -> &'a Struct<'a>

Get the underlying Struct, or panic if the node is not a Struct.

Source

pub fn unwrap_struct_member(self) -> &'a StructMember<'a>

Get the underlying StructMember, or panic if the node is not a StructMember.

Source

pub fn unwrap_port(self) -> &'a Port<'a>

Get the underlying Port, or panic if the node is not a Port.

Source

pub fn unwrap_port_decl(self) -> &'a PortDecl<'a>

Get the underlying PortDecl, or panic if the node is not a PortDecl.

Source

pub fn unwrap_procedure(self) -> &'a Procedure<'a>

Get the underlying Procedure, or panic if the node is not a Procedure.

Source

pub fn unwrap_stmt(self) -> &'a Stmt<'a>

Get the underlying Stmt, or panic if the node is not a Stmt.

Source

pub fn unwrap_var_decl(self) -> &'a VarDecl<'a>

Get the underlying VarDecl, or panic if the node is not a VarDecl.

Source

pub fn unwrap_var_decl_name(self) -> &'a VarDeclName<'a>

Get the underlying VarDeclName, or panic if the node is not a VarDeclName.

Source

pub fn unwrap_genvar_decl(self) -> &'a GenvarDecl<'a>

Get the underlying GenvarDecl, or panic if the node is not a GenvarDecl.

Source

pub fn unwrap_foreach_index(self) -> &'a ForeachIndex<'a>

Get the underlying ForeachIndex, or panic if the node is not a ForeachIndex.

Source

pub fn unwrap_expr(self) -> &'a Expr<'a>

Get the underlying Expr, or panic if the node is not a Expr.

Source

pub fn unwrap_call_arg(self) -> &'a CallArg<'a>

Get the underlying CallArg, or panic if the node is not a CallArg.

Source

pub fn unwrap_class_decl(self) -> &'a ClassDecl<'a>

Get the underlying ClassDecl, or panic if the node is not a ClassDecl.

Source

pub fn unwrap_typedef(self) -> &'a Typedef<'a>

Get the underlying Typedef, or panic if the node is not a Typedef.

Source

pub fn unwrap_subroutine_decl(self) -> &'a SubroutineDecl<'a>

Get the underlying SubroutineDecl, or panic if the node is not a SubroutineDecl.

Source

pub fn unwrap_subroutine_prototype(self) -> &'a SubroutinePrototype<'a>

Get the underlying SubroutinePrototype, or panic if the node is not a SubroutinePrototype.

Source

pub fn unwrap_subroutine_port(self) -> &'a SubroutinePort<'a>

Get the underlying SubroutinePort, or panic if the node is not a SubroutinePort.

Source

pub fn unwrap_subroutine_port_decl(self) -> &'a SubroutinePortDecl<'a>

Get the underlying SubroutinePortDecl, or panic if the node is not a SubroutinePortDecl.

Source

pub fn unwrap_net_decl(self) -> &'a NetDecl<'a>

Get the underlying NetDecl, or panic if the node is not a NetDecl.

Source

pub fn unwrap_pattern_field(self) -> &'a PatternField<'a>

Get the underlying PatternField, or panic if the node is not a PatternField.

Source

pub fn unwrap_import_decl(self) -> &'a ImportDecl<'a>

Get the underlying ImportDecl, or panic if the node is not a ImportDecl.

Source

pub fn unwrap_import_item(self) -> &'a ImportItem<'a>

Get the underlying ImportItem, or panic if the node is not a ImportItem.

Source

pub fn unwrap_inst(self) -> &'a Inst<'a>

Get the underlying Inst, or panic if the node is not a Inst.

Source

pub fn unwrap_inst_name(self) -> &'a InstName<'a>

Get the underlying InstName, or panic if the node is not a InstName.

Source

pub fn unwrap_modport(self) -> &'a Modport<'a>

Get the underlying Modport, or panic if the node is not a Modport.

Source

pub fn unwrap_modport_name(self) -> &'a ModportName<'a>

Get the underlying ModportName, or panic if the node is not a ModportName.

Source

pub fn unwrap_modport_port(self) -> &'a ModportPort<'a>

Get the underlying ModportPort, or panic if the node is not a ModportPort.

Source

pub fn unwrap_modport_simple_port(self) -> &'a ModportSimplePort<'a>

Get the underlying ModportSimplePort, or panic if the node is not a ModportSimplePort.

Source

pub fn unwrap_param_decl(self) -> &'a ParamDecl<'a>

Get the underlying ParamDecl, or panic if the node is not a ParamDecl.

Source

pub fn unwrap_param_type_decl(self) -> &'a ParamTypeDecl<'a>

Get the underlying ParamTypeDecl, or panic if the node is not a ParamTypeDecl.

Source

pub fn unwrap_param_value_decl(self) -> &'a ParamValueDecl<'a>

Get the underlying ParamValueDecl, or panic if the node is not a ParamValueDecl.

Source

pub fn unwrap_cont_assign(self) -> &'a ContAssign<'a>

Get the underlying ContAssign, or panic if the node is not a ContAssign.

Source

pub fn unwrap_generate_for(self) -> &'a GenerateFor<'a>

Get the underlying GenerateFor, or panic if the node is not a GenerateFor.

Source

pub fn unwrap_generate_if(self) -> &'a GenerateIf<'a>

Get the underlying GenerateIf, or panic if the node is not a GenerateIf.

Source

pub fn unwrap_generate_case(self) -> &'a GenerateCase<'a>

Get the underlying GenerateCase, or panic if the node is not a GenerateCase.

Source

pub fn unwrap_generate_block(self) -> &'a GenerateBlock<'a>

Get the underlying GenerateBlock, or panic if the node is not a GenerateBlock.

Source

pub fn unwrap_port_conn(self) -> &'a PortConn<'a>

Get the underlying PortConn, or panic if the node is not a PortConn.

Source

pub fn unwrap_dpi_decl(self) -> &'a DpiDecl<'a>

Get the underlying DpiDecl, or panic if the node is not a DpiDecl.

Source

pub fn unwrap_data_type(self) -> &'a DataType<'a>

Get the underlying DataType, or panic if the node is not a DataType.

Source

pub fn unwrap_implicit_data_type(self) -> &'a ImplicitDataType<'a>

Get the underlying ImplicitDataType, or panic if the node is not a ImplicitDataType.

Source

pub fn unwrap_var_dim(self) -> &'a VarDim<'a>

Get the underlying VarDim, or panic if the node is not a VarDim.

Source

pub fn unwrap_packed_dim(self) -> &'a PackedDim<'a>

Get the underlying PackedDim, or panic if the node is not a PackedDim.

Source

pub fn unwrap_unpacked_dim(self) -> &'a UnpackedDim<'a>

Get the underlying UnpackedDim, or panic if the node is not a UnpackedDim.

Source

pub fn unwrap_path_segment(self) -> &'a PathSegment<'a>

Get the underlying PathSegment, or panic if the node is not a PathSegment.

Source

pub fn as_any(self) -> &'a dyn AnyNode<'a>

Convert to an AnyNode trait object.

Trait Implementations§

Source§

impl<'a> Clone for AllNode<'a>

Source§

fn clone(&self) -> AllNode<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for AllNode<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> From<&'a Node<'a, CallArgData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a CallArg<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ClassDeclData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a ClassDecl<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ContAssignData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a ContAssign<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, DataTypeData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a DataType<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, DpiDeclData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a DpiDecl<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, EnumData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a Enum<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, EnumNameData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a EnumName<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ExprData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a Expr<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ForeachIndexData>> for AllNode<'a>

Source§

fn from(node: &'a ForeachIndex<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, GenerateBlockData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a GenerateBlock<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, GenerateCaseData>> for AllNode<'a>

Source§

fn from(node: &'a GenerateCase<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, GenerateForData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a GenerateFor<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, GenerateIfData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a GenerateIf<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, GenvarDeclData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a GenvarDecl<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ImplicitDataTypeData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a ImplicitDataType<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ImportDeclData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a ImportDecl<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ImportItemData>> for AllNode<'a>

Source§

fn from(node: &'a ImportItem<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, InstData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a Inst<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, InstNameData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a InstName<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, InterfaceData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a Interface<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ItemData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a Item<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ModportData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a Modport<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ModportNameData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a ModportName<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ModportPortData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a ModportPort<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ModportSimplePortData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a ModportSimplePort<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ModuleData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a Module<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, NetDeclData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a NetDecl<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, PackageData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a Package<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, PackedDimData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a PackedDim<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ParamDeclData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a ParamDecl<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ParamTypeDeclData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a ParamTypeDecl<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ParamValueDeclData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a ParamValueDecl<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, PathSegmentData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a PathSegment<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, PatternFieldData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a PatternField<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, PortConnData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a PortConn<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, PortData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a Port<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, PortDeclData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a PortDecl<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, ProcedureData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a Procedure<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, RootData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a Root<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, SourceFileData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a SourceFile<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, StmtData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a Stmt<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, StructData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a Struct<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, StructMemberData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a StructMember<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, SubroutineDeclData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a SubroutineDecl<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, SubroutinePortData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a SubroutinePort<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, SubroutinePortDeclData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a SubroutinePortDecl<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, SubroutinePrototypeData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a SubroutinePrototype<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, TypeData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a Type<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, TypeKindData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a TypeKind<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, TypedefData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a Typedef<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, UnpackedDimData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a UnpackedDim<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, VarDeclData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a VarDecl<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, VarDeclNameData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a VarDeclName<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Node<'a, VarDimData<'a>>> for AllNode<'a>

Source§

fn from(node: &'a VarDim<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> Copy for AllNode<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for AllNode<'a>

§

impl<'a> !RefUnwindSafe for AllNode<'a>

§

impl<'a> Send for AllNode<'a>

§

impl<'a> Sync for AllNode<'a>

§

impl<'a> Unpin for AllNode<'a>

§

impl<'a> !UnwindSafe for AllNode<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.