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>
impl<'a> AllNode<'a>
Sourcepub fn get_root(self) -> Option<&'a Root<'a>>
pub fn get_root(self) -> Option<&'a Root<'a>>
Get the underlying Root, or None if the node is not a Root.
Sourcepub fn get_source_file(self) -> Option<&'a SourceFile<'a>>
pub fn get_source_file(self) -> Option<&'a SourceFile<'a>>
Get the underlying SourceFile, or None if the node is not a SourceFile.
Sourcepub fn get_item(self) -> Option<&'a Item<'a>>
pub fn get_item(self) -> Option<&'a Item<'a>>
Get the underlying Item, or None if the node is not a Item.
Sourcepub fn get_module(self) -> Option<&'a Module<'a>>
pub fn get_module(self) -> Option<&'a Module<'a>>
Get the underlying Module, or None if the node is not a Module.
Sourcepub fn get_interface(self) -> Option<&'a Interface<'a>>
pub fn get_interface(self) -> Option<&'a Interface<'a>>
Get the underlying Interface, or None if the node is not a Interface.
Sourcepub fn get_package(self) -> Option<&'a Package<'a>>
pub fn get_package(self) -> Option<&'a Package<'a>>
Get the underlying Package, or None if the node is not a Package.
Sourcepub fn get_type(self) -> Option<&'a Type<'a>>
pub fn get_type(self) -> Option<&'a Type<'a>>
Get the underlying Type, or None if the node is not a Type.
Sourcepub fn get_type_kind(self) -> Option<&'a TypeKind<'a>>
pub fn get_type_kind(self) -> Option<&'a TypeKind<'a>>
Get the underlying TypeKind, or None if the node is not a TypeKind.
Sourcepub fn get_enum(self) -> Option<&'a Enum<'a>>
pub fn get_enum(self) -> Option<&'a Enum<'a>>
Get the underlying Enum, or None if the node is not a Enum.
Sourcepub fn get_enum_name(self) -> Option<&'a EnumName<'a>>
pub fn get_enum_name(self) -> Option<&'a EnumName<'a>>
Get the underlying EnumName, or None if the node is not a EnumName.
Sourcepub fn get_struct(self) -> Option<&'a Struct<'a>>
pub fn get_struct(self) -> Option<&'a Struct<'a>>
Get the underlying Struct, or None if the node is not a Struct.
Sourcepub fn get_struct_member(self) -> Option<&'a StructMember<'a>>
pub fn get_struct_member(self) -> Option<&'a StructMember<'a>>
Get the underlying StructMember, or None if the node is not a StructMember.
Sourcepub fn get_port(self) -> Option<&'a Port<'a>>
pub fn get_port(self) -> Option<&'a Port<'a>>
Get the underlying Port, or None if the node is not a Port.
Sourcepub fn get_port_decl(self) -> Option<&'a PortDecl<'a>>
pub fn get_port_decl(self) -> Option<&'a PortDecl<'a>>
Get the underlying PortDecl, or None if the node is not a PortDecl.
Sourcepub fn get_procedure(self) -> Option<&'a Procedure<'a>>
pub fn get_procedure(self) -> Option<&'a Procedure<'a>>
Get the underlying Procedure, or None if the node is not a Procedure.
Sourcepub fn get_stmt(self) -> Option<&'a Stmt<'a>>
pub fn get_stmt(self) -> Option<&'a Stmt<'a>>
Get the underlying Stmt, or None if the node is not a Stmt.
Sourcepub fn get_var_decl(self) -> Option<&'a VarDecl<'a>>
pub fn get_var_decl(self) -> Option<&'a VarDecl<'a>>
Get the underlying VarDecl, or None if the node is not a VarDecl.
Sourcepub fn get_var_decl_name(self) -> Option<&'a VarDeclName<'a>>
pub fn get_var_decl_name(self) -> Option<&'a VarDeclName<'a>>
Get the underlying VarDeclName, or None if the node is not a VarDeclName.
Sourcepub fn get_genvar_decl(self) -> Option<&'a GenvarDecl<'a>>
pub fn get_genvar_decl(self) -> Option<&'a GenvarDecl<'a>>
Get the underlying GenvarDecl, or None if the node is not a GenvarDecl.
Sourcepub fn get_foreach_index(self) -> Option<&'a ForeachIndex<'a>>
pub fn get_foreach_index(self) -> Option<&'a ForeachIndex<'a>>
Get the underlying ForeachIndex, or None if the node is not a ForeachIndex.
Sourcepub fn get_expr(self) -> Option<&'a Expr<'a>>
pub fn get_expr(self) -> Option<&'a Expr<'a>>
Get the underlying Expr, or None if the node is not a Expr.
Sourcepub fn get_call_arg(self) -> Option<&'a CallArg<'a>>
pub fn get_call_arg(self) -> Option<&'a CallArg<'a>>
Get the underlying CallArg, or None if the node is not a CallArg.
Sourcepub fn get_class_decl(self) -> Option<&'a ClassDecl<'a>>
pub fn get_class_decl(self) -> Option<&'a ClassDecl<'a>>
Get the underlying ClassDecl, or None if the node is not a ClassDecl.
Sourcepub fn get_typedef(self) -> Option<&'a Typedef<'a>>
pub fn get_typedef(self) -> Option<&'a Typedef<'a>>
Get the underlying Typedef, or None if the node is not a Typedef.
Sourcepub fn get_subroutine_decl(self) -> Option<&'a SubroutineDecl<'a>>
pub fn get_subroutine_decl(self) -> Option<&'a SubroutineDecl<'a>>
Get the underlying SubroutineDecl, or None if the node is not a SubroutineDecl.
Sourcepub fn get_subroutine_prototype(self) -> Option<&'a SubroutinePrototype<'a>>
pub fn get_subroutine_prototype(self) -> Option<&'a SubroutinePrototype<'a>>
Get the underlying SubroutinePrototype, or None if the node is not a SubroutinePrototype.
Sourcepub fn get_subroutine_port(self) -> Option<&'a SubroutinePort<'a>>
pub fn get_subroutine_port(self) -> Option<&'a SubroutinePort<'a>>
Get the underlying SubroutinePort, or None if the node is not a SubroutinePort.
Sourcepub fn get_subroutine_port_decl(self) -> Option<&'a SubroutinePortDecl<'a>>
pub fn get_subroutine_port_decl(self) -> Option<&'a SubroutinePortDecl<'a>>
Get the underlying SubroutinePortDecl, or None if the node is not a SubroutinePortDecl.
Sourcepub fn get_net_decl(self) -> Option<&'a NetDecl<'a>>
pub fn get_net_decl(self) -> Option<&'a NetDecl<'a>>
Get the underlying NetDecl, or None if the node is not a NetDecl.
Sourcepub fn get_pattern_field(self) -> Option<&'a PatternField<'a>>
pub fn get_pattern_field(self) -> Option<&'a PatternField<'a>>
Get the underlying PatternField, or None if the node is not a PatternField.
Sourcepub fn get_import_decl(self) -> Option<&'a ImportDecl<'a>>
pub fn get_import_decl(self) -> Option<&'a ImportDecl<'a>>
Get the underlying ImportDecl, or None if the node is not a ImportDecl.
Sourcepub fn get_import_item(self) -> Option<&'a ImportItem<'a>>
pub fn get_import_item(self) -> Option<&'a ImportItem<'a>>
Get the underlying ImportItem, or None if the node is not a ImportItem.
Sourcepub fn get_inst(self) -> Option<&'a Inst<'a>>
pub fn get_inst(self) -> Option<&'a Inst<'a>>
Get the underlying Inst, or None if the node is not a Inst.
Sourcepub fn get_inst_name(self) -> Option<&'a InstName<'a>>
pub fn get_inst_name(self) -> Option<&'a InstName<'a>>
Get the underlying InstName, or None if the node is not a InstName.
Sourcepub fn get_modport(self) -> Option<&'a Modport<'a>>
pub fn get_modport(self) -> Option<&'a Modport<'a>>
Get the underlying Modport, or None if the node is not a Modport.
Sourcepub fn get_modport_name(self) -> Option<&'a ModportName<'a>>
pub fn get_modport_name(self) -> Option<&'a ModportName<'a>>
Get the underlying ModportName, or None if the node is not a ModportName.
Sourcepub fn get_modport_port(self) -> Option<&'a ModportPort<'a>>
pub fn get_modport_port(self) -> Option<&'a ModportPort<'a>>
Get the underlying ModportPort, or None if the node is not a ModportPort.
Sourcepub fn get_modport_simple_port(self) -> Option<&'a ModportSimplePort<'a>>
pub fn get_modport_simple_port(self) -> Option<&'a ModportSimplePort<'a>>
Get the underlying ModportSimplePort, or None if the node is not a ModportSimplePort.
Sourcepub fn get_param_decl(self) -> Option<&'a ParamDecl<'a>>
pub fn get_param_decl(self) -> Option<&'a ParamDecl<'a>>
Get the underlying ParamDecl, or None if the node is not a ParamDecl.
Sourcepub fn get_param_type_decl(self) -> Option<&'a ParamTypeDecl<'a>>
pub fn get_param_type_decl(self) -> Option<&'a ParamTypeDecl<'a>>
Get the underlying ParamTypeDecl, or None if the node is not a ParamTypeDecl.
Sourcepub fn get_param_value_decl(self) -> Option<&'a ParamValueDecl<'a>>
pub fn get_param_value_decl(self) -> Option<&'a ParamValueDecl<'a>>
Get the underlying ParamValueDecl, or None if the node is not a ParamValueDecl.
Sourcepub fn get_cont_assign(self) -> Option<&'a ContAssign<'a>>
pub fn get_cont_assign(self) -> Option<&'a ContAssign<'a>>
Get the underlying ContAssign, or None if the node is not a ContAssign.
Sourcepub fn get_generate_for(self) -> Option<&'a GenerateFor<'a>>
pub fn get_generate_for(self) -> Option<&'a GenerateFor<'a>>
Get the underlying GenerateFor, or None if the node is not a GenerateFor.
Sourcepub fn get_generate_if(self) -> Option<&'a GenerateIf<'a>>
pub fn get_generate_if(self) -> Option<&'a GenerateIf<'a>>
Get the underlying GenerateIf, or None if the node is not a GenerateIf.
Sourcepub fn get_generate_case(self) -> Option<&'a GenerateCase<'a>>
pub fn get_generate_case(self) -> Option<&'a GenerateCase<'a>>
Get the underlying GenerateCase, or None if the node is not a GenerateCase.
Sourcepub fn get_generate_block(self) -> Option<&'a GenerateBlock<'a>>
pub fn get_generate_block(self) -> Option<&'a GenerateBlock<'a>>
Get the underlying GenerateBlock, or None if the node is not a GenerateBlock.
Sourcepub fn get_port_conn(self) -> Option<&'a PortConn<'a>>
pub fn get_port_conn(self) -> Option<&'a PortConn<'a>>
Get the underlying PortConn, or None if the node is not a PortConn.
Sourcepub fn get_dpi_decl(self) -> Option<&'a DpiDecl<'a>>
pub fn get_dpi_decl(self) -> Option<&'a DpiDecl<'a>>
Get the underlying DpiDecl, or None if the node is not a DpiDecl.
Sourcepub fn get_data_type(self) -> Option<&'a DataType<'a>>
pub fn get_data_type(self) -> Option<&'a DataType<'a>>
Get the underlying DataType, or None if the node is not a DataType.
Sourcepub fn get_implicit_data_type(self) -> Option<&'a ImplicitDataType<'a>>
pub fn get_implicit_data_type(self) -> Option<&'a ImplicitDataType<'a>>
Get the underlying ImplicitDataType, or None if the node is not a ImplicitDataType.
Sourcepub fn get_var_dim(self) -> Option<&'a VarDim<'a>>
pub fn get_var_dim(self) -> Option<&'a VarDim<'a>>
Get the underlying VarDim, or None if the node is not a VarDim.
Sourcepub fn get_packed_dim(self) -> Option<&'a PackedDim<'a>>
pub fn get_packed_dim(self) -> Option<&'a PackedDim<'a>>
Get the underlying PackedDim, or None if the node is not a PackedDim.
Sourcepub fn get_unpacked_dim(self) -> Option<&'a UnpackedDim<'a>>
pub fn get_unpacked_dim(self) -> Option<&'a UnpackedDim<'a>>
Get the underlying UnpackedDim, or None if the node is not a UnpackedDim.
Sourcepub fn get_path_segment(self) -> Option<&'a PathSegment<'a>>
pub fn get_path_segment(self) -> Option<&'a PathSegment<'a>>
Get the underlying PathSegment, or None if the node is not a PathSegment.
Sourcepub fn is_source_file(self) -> bool
pub fn is_source_file(self) -> bool
Check whether this is a SourceFile node.
Sourcepub fn is_interface(self) -> bool
pub fn is_interface(self) -> bool
Check whether this is a Interface node.
Sourcepub fn is_package(self) -> bool
pub fn is_package(self) -> bool
Check whether this is a Package node.
Sourcepub fn is_type_kind(self) -> bool
pub fn is_type_kind(self) -> bool
Check whether this is a TypeKind node.
Sourcepub fn is_enum_name(self) -> bool
pub fn is_enum_name(self) -> bool
Check whether this is a EnumName node.
Sourcepub fn is_struct_member(self) -> bool
pub fn is_struct_member(self) -> bool
Check whether this is a StructMember node.
Sourcepub fn is_port_decl(self) -> bool
pub fn is_port_decl(self) -> bool
Check whether this is a PortDecl node.
Sourcepub fn is_procedure(self) -> bool
pub fn is_procedure(self) -> bool
Check whether this is a Procedure node.
Sourcepub fn is_var_decl(self) -> bool
pub fn is_var_decl(self) -> bool
Check whether this is a VarDecl node.
Sourcepub fn is_var_decl_name(self) -> bool
pub fn is_var_decl_name(self) -> bool
Check whether this is a VarDeclName node.
Sourcepub fn is_genvar_decl(self) -> bool
pub fn is_genvar_decl(self) -> bool
Check whether this is a GenvarDecl node.
Sourcepub fn is_foreach_index(self) -> bool
pub fn is_foreach_index(self) -> bool
Check whether this is a ForeachIndex node.
Sourcepub fn is_call_arg(self) -> bool
pub fn is_call_arg(self) -> bool
Check whether this is a CallArg node.
Sourcepub fn is_class_decl(self) -> bool
pub fn is_class_decl(self) -> bool
Check whether this is a ClassDecl node.
Sourcepub fn is_typedef(self) -> bool
pub fn is_typedef(self) -> bool
Check whether this is a Typedef node.
Sourcepub fn is_subroutine_decl(self) -> bool
pub fn is_subroutine_decl(self) -> bool
Check whether this is a SubroutineDecl node.
Sourcepub fn is_subroutine_prototype(self) -> bool
pub fn is_subroutine_prototype(self) -> bool
Check whether this is a SubroutinePrototype node.
Sourcepub fn is_subroutine_port(self) -> bool
pub fn is_subroutine_port(self) -> bool
Check whether this is a SubroutinePort node.
Sourcepub fn is_subroutine_port_decl(self) -> bool
pub fn is_subroutine_port_decl(self) -> bool
Check whether this is a SubroutinePortDecl node.
Sourcepub fn is_net_decl(self) -> bool
pub fn is_net_decl(self) -> bool
Check whether this is a NetDecl node.
Sourcepub fn is_pattern_field(self) -> bool
pub fn is_pattern_field(self) -> bool
Check whether this is a PatternField node.
Sourcepub fn is_import_decl(self) -> bool
pub fn is_import_decl(self) -> bool
Check whether this is a ImportDecl node.
Sourcepub fn is_import_item(self) -> bool
pub fn is_import_item(self) -> bool
Check whether this is a ImportItem node.
Sourcepub fn is_inst_name(self) -> bool
pub fn is_inst_name(self) -> bool
Check whether this is a InstName node.
Sourcepub fn is_modport(self) -> bool
pub fn is_modport(self) -> bool
Check whether this is a Modport node.
Sourcepub fn is_modport_name(self) -> bool
pub fn is_modport_name(self) -> bool
Check whether this is a ModportName node.
Sourcepub fn is_modport_port(self) -> bool
pub fn is_modport_port(self) -> bool
Check whether this is a ModportPort node.
Sourcepub fn is_modport_simple_port(self) -> bool
pub fn is_modport_simple_port(self) -> bool
Check whether this is a ModportSimplePort node.
Sourcepub fn is_param_decl(self) -> bool
pub fn is_param_decl(self) -> bool
Check whether this is a ParamDecl node.
Sourcepub fn is_param_type_decl(self) -> bool
pub fn is_param_type_decl(self) -> bool
Check whether this is a ParamTypeDecl node.
Sourcepub fn is_param_value_decl(self) -> bool
pub fn is_param_value_decl(self) -> bool
Check whether this is a ParamValueDecl node.
Sourcepub fn is_cont_assign(self) -> bool
pub fn is_cont_assign(self) -> bool
Check whether this is a ContAssign node.
Sourcepub fn is_generate_for(self) -> bool
pub fn is_generate_for(self) -> bool
Check whether this is a GenerateFor node.
Sourcepub fn is_generate_if(self) -> bool
pub fn is_generate_if(self) -> bool
Check whether this is a GenerateIf node.
Sourcepub fn is_generate_case(self) -> bool
pub fn is_generate_case(self) -> bool
Check whether this is a GenerateCase node.
Sourcepub fn is_generate_block(self) -> bool
pub fn is_generate_block(self) -> bool
Check whether this is a GenerateBlock node.
Sourcepub fn is_port_conn(self) -> bool
pub fn is_port_conn(self) -> bool
Check whether this is a PortConn node.
Sourcepub fn is_dpi_decl(self) -> bool
pub fn is_dpi_decl(self) -> bool
Check whether this is a DpiDecl node.
Sourcepub fn is_data_type(self) -> bool
pub fn is_data_type(self) -> bool
Check whether this is a DataType node.
Sourcepub fn is_implicit_data_type(self) -> bool
pub fn is_implicit_data_type(self) -> bool
Check whether this is a ImplicitDataType node.
Sourcepub fn is_var_dim(self) -> bool
pub fn is_var_dim(self) -> bool
Check whether this is a VarDim node.
Sourcepub fn is_packed_dim(self) -> bool
pub fn is_packed_dim(self) -> bool
Check whether this is a PackedDim node.
Sourcepub fn is_unpacked_dim(self) -> bool
pub fn is_unpacked_dim(self) -> bool
Check whether this is a UnpackedDim node.
Sourcepub fn is_path_segment(self) -> bool
pub fn is_path_segment(self) -> bool
Check whether this is a PathSegment node.
Sourcepub fn unwrap_root(self) -> &'a Root<'a>
pub fn unwrap_root(self) -> &'a Root<'a>
Get the underlying Root, or panic if the node is not a Root.
Sourcepub fn unwrap_source_file(self) -> &'a SourceFile<'a>
pub fn unwrap_source_file(self) -> &'a SourceFile<'a>
Get the underlying SourceFile, or panic if the node is not a SourceFile.
Sourcepub fn unwrap_item(self) -> &'a Item<'a>
pub fn unwrap_item(self) -> &'a Item<'a>
Get the underlying Item, or panic if the node is not a Item.
Sourcepub fn unwrap_module(self) -> &'a Module<'a>
pub fn unwrap_module(self) -> &'a Module<'a>
Get the underlying Module, or panic if the node is not a Module.
Sourcepub fn unwrap_interface(self) -> &'a Interface<'a>
pub fn unwrap_interface(self) -> &'a Interface<'a>
Get the underlying Interface, or panic if the node is not a Interface.
Sourcepub fn unwrap_package(self) -> &'a Package<'a>
pub fn unwrap_package(self) -> &'a Package<'a>
Get the underlying Package, or panic if the node is not a Package.
Sourcepub fn unwrap_type(self) -> &'a Type<'a>
pub fn unwrap_type(self) -> &'a Type<'a>
Get the underlying Type, or panic if the node is not a Type.
Sourcepub fn unwrap_type_kind(self) -> &'a TypeKind<'a>
pub fn unwrap_type_kind(self) -> &'a TypeKind<'a>
Get the underlying TypeKind, or panic if the node is not a TypeKind.
Sourcepub fn unwrap_enum(self) -> &'a Enum<'a>
pub fn unwrap_enum(self) -> &'a Enum<'a>
Get the underlying Enum, or panic if the node is not a Enum.
Sourcepub fn unwrap_enum_name(self) -> &'a EnumName<'a>
pub fn unwrap_enum_name(self) -> &'a EnumName<'a>
Get the underlying EnumName, or panic if the node is not a EnumName.
Sourcepub fn unwrap_struct(self) -> &'a Struct<'a>
pub fn unwrap_struct(self) -> &'a Struct<'a>
Get the underlying Struct, or panic if the node is not a Struct.
Sourcepub fn unwrap_struct_member(self) -> &'a StructMember<'a>
pub fn unwrap_struct_member(self) -> &'a StructMember<'a>
Get the underlying StructMember, or panic if the node is not a StructMember.
Sourcepub fn unwrap_port(self) -> &'a Port<'a>
pub fn unwrap_port(self) -> &'a Port<'a>
Get the underlying Port, or panic if the node is not a Port.
Sourcepub fn unwrap_port_decl(self) -> &'a PortDecl<'a>
pub fn unwrap_port_decl(self) -> &'a PortDecl<'a>
Get the underlying PortDecl, or panic if the node is not a PortDecl.
Sourcepub fn unwrap_procedure(self) -> &'a Procedure<'a>
pub fn unwrap_procedure(self) -> &'a Procedure<'a>
Get the underlying Procedure, or panic if the node is not a Procedure.
Sourcepub fn unwrap_stmt(self) -> &'a Stmt<'a>
pub fn unwrap_stmt(self) -> &'a Stmt<'a>
Get the underlying Stmt, or panic if the node is not a Stmt.
Sourcepub fn unwrap_var_decl(self) -> &'a VarDecl<'a>
pub fn unwrap_var_decl(self) -> &'a VarDecl<'a>
Get the underlying VarDecl, or panic if the node is not a VarDecl.
Sourcepub fn unwrap_var_decl_name(self) -> &'a VarDeclName<'a>
pub fn unwrap_var_decl_name(self) -> &'a VarDeclName<'a>
Get the underlying VarDeclName, or panic if the node is not a VarDeclName.
Sourcepub fn unwrap_genvar_decl(self) -> &'a GenvarDecl<'a>
pub fn unwrap_genvar_decl(self) -> &'a GenvarDecl<'a>
Get the underlying GenvarDecl, or panic if the node is not a GenvarDecl.
Sourcepub fn unwrap_foreach_index(self) -> &'a ForeachIndex<'a>
pub fn unwrap_foreach_index(self) -> &'a ForeachIndex<'a>
Get the underlying ForeachIndex, or panic if the node is not a ForeachIndex.
Sourcepub fn unwrap_expr(self) -> &'a Expr<'a>
pub fn unwrap_expr(self) -> &'a Expr<'a>
Get the underlying Expr, or panic if the node is not a Expr.
Sourcepub fn unwrap_call_arg(self) -> &'a CallArg<'a>
pub fn unwrap_call_arg(self) -> &'a CallArg<'a>
Get the underlying CallArg, or panic if the node is not a CallArg.
Sourcepub fn unwrap_class_decl(self) -> &'a ClassDecl<'a>
pub fn unwrap_class_decl(self) -> &'a ClassDecl<'a>
Get the underlying ClassDecl, or panic if the node is not a ClassDecl.
Sourcepub fn unwrap_typedef(self) -> &'a Typedef<'a>
pub fn unwrap_typedef(self) -> &'a Typedef<'a>
Get the underlying Typedef, or panic if the node is not a Typedef.
Sourcepub fn unwrap_subroutine_decl(self) -> &'a SubroutineDecl<'a>
pub fn unwrap_subroutine_decl(self) -> &'a SubroutineDecl<'a>
Get the underlying SubroutineDecl, or panic if the node is not a SubroutineDecl.
Sourcepub fn unwrap_subroutine_prototype(self) -> &'a SubroutinePrototype<'a>
pub fn unwrap_subroutine_prototype(self) -> &'a SubroutinePrototype<'a>
Get the underlying SubroutinePrototype, or panic if the node is not a SubroutinePrototype.
Sourcepub fn unwrap_subroutine_port(self) -> &'a SubroutinePort<'a>
pub fn unwrap_subroutine_port(self) -> &'a SubroutinePort<'a>
Get the underlying SubroutinePort, or panic if the node is not a SubroutinePort.
Sourcepub fn unwrap_subroutine_port_decl(self) -> &'a SubroutinePortDecl<'a>
pub fn unwrap_subroutine_port_decl(self) -> &'a SubroutinePortDecl<'a>
Get the underlying SubroutinePortDecl, or panic if the node is not a SubroutinePortDecl.
Sourcepub fn unwrap_net_decl(self) -> &'a NetDecl<'a>
pub fn unwrap_net_decl(self) -> &'a NetDecl<'a>
Get the underlying NetDecl, or panic if the node is not a NetDecl.
Sourcepub fn unwrap_pattern_field(self) -> &'a PatternField<'a>
pub fn unwrap_pattern_field(self) -> &'a PatternField<'a>
Get the underlying PatternField, or panic if the node is not a PatternField.
Sourcepub fn unwrap_import_decl(self) -> &'a ImportDecl<'a>
pub fn unwrap_import_decl(self) -> &'a ImportDecl<'a>
Get the underlying ImportDecl, or panic if the node is not a ImportDecl.
Sourcepub fn unwrap_import_item(self) -> &'a ImportItem<'a>
pub fn unwrap_import_item(self) -> &'a ImportItem<'a>
Get the underlying ImportItem, or panic if the node is not a ImportItem.
Sourcepub fn unwrap_inst(self) -> &'a Inst<'a>
pub fn unwrap_inst(self) -> &'a Inst<'a>
Get the underlying Inst, or panic if the node is not a Inst.
Sourcepub fn unwrap_inst_name(self) -> &'a InstName<'a>
pub fn unwrap_inst_name(self) -> &'a InstName<'a>
Get the underlying InstName, or panic if the node is not a InstName.
Sourcepub fn unwrap_modport(self) -> &'a Modport<'a>
pub fn unwrap_modport(self) -> &'a Modport<'a>
Get the underlying Modport, or panic if the node is not a Modport.
Sourcepub fn unwrap_modport_name(self) -> &'a ModportName<'a>
pub fn unwrap_modport_name(self) -> &'a ModportName<'a>
Get the underlying ModportName, or panic if the node is not a ModportName.
Sourcepub fn unwrap_modport_port(self) -> &'a ModportPort<'a>
pub fn unwrap_modport_port(self) -> &'a ModportPort<'a>
Get the underlying ModportPort, or panic if the node is not a ModportPort.
Sourcepub fn unwrap_modport_simple_port(self) -> &'a ModportSimplePort<'a>
pub fn unwrap_modport_simple_port(self) -> &'a ModportSimplePort<'a>
Get the underlying ModportSimplePort, or panic if the node is not a ModportSimplePort.
Sourcepub fn unwrap_param_decl(self) -> &'a ParamDecl<'a>
pub fn unwrap_param_decl(self) -> &'a ParamDecl<'a>
Get the underlying ParamDecl, or panic if the node is not a ParamDecl.
Sourcepub fn unwrap_param_type_decl(self) -> &'a ParamTypeDecl<'a>
pub fn unwrap_param_type_decl(self) -> &'a ParamTypeDecl<'a>
Get the underlying ParamTypeDecl, or panic if the node is not a ParamTypeDecl.
Sourcepub fn unwrap_param_value_decl(self) -> &'a ParamValueDecl<'a>
pub fn unwrap_param_value_decl(self) -> &'a ParamValueDecl<'a>
Get the underlying ParamValueDecl, or panic if the node is not a ParamValueDecl.
Sourcepub fn unwrap_cont_assign(self) -> &'a ContAssign<'a>
pub fn unwrap_cont_assign(self) -> &'a ContAssign<'a>
Get the underlying ContAssign, or panic if the node is not a ContAssign.
Sourcepub fn unwrap_generate_for(self) -> &'a GenerateFor<'a>
pub fn unwrap_generate_for(self) -> &'a GenerateFor<'a>
Get the underlying GenerateFor, or panic if the node is not a GenerateFor.
Sourcepub fn unwrap_generate_if(self) -> &'a GenerateIf<'a>
pub fn unwrap_generate_if(self) -> &'a GenerateIf<'a>
Get the underlying GenerateIf, or panic if the node is not a GenerateIf.
Sourcepub fn unwrap_generate_case(self) -> &'a GenerateCase<'a>
pub fn unwrap_generate_case(self) -> &'a GenerateCase<'a>
Get the underlying GenerateCase, or panic if the node is not a GenerateCase.
Sourcepub fn unwrap_generate_block(self) -> &'a GenerateBlock<'a>
pub fn unwrap_generate_block(self) -> &'a GenerateBlock<'a>
Get the underlying GenerateBlock, or panic if the node is not a GenerateBlock.
Sourcepub fn unwrap_port_conn(self) -> &'a PortConn<'a>
pub fn unwrap_port_conn(self) -> &'a PortConn<'a>
Get the underlying PortConn, or panic if the node is not a PortConn.
Sourcepub fn unwrap_dpi_decl(self) -> &'a DpiDecl<'a>
pub fn unwrap_dpi_decl(self) -> &'a DpiDecl<'a>
Get the underlying DpiDecl, or panic if the node is not a DpiDecl.
Sourcepub fn unwrap_data_type(self) -> &'a DataType<'a>
pub fn unwrap_data_type(self) -> &'a DataType<'a>
Get the underlying DataType, or panic if the node is not a DataType.
Sourcepub fn unwrap_implicit_data_type(self) -> &'a ImplicitDataType<'a>
pub fn unwrap_implicit_data_type(self) -> &'a ImplicitDataType<'a>
Get the underlying ImplicitDataType, or panic if the node is not a ImplicitDataType.
Sourcepub fn unwrap_var_dim(self) -> &'a VarDim<'a>
pub fn unwrap_var_dim(self) -> &'a VarDim<'a>
Get the underlying VarDim, or panic if the node is not a VarDim.
Sourcepub fn unwrap_packed_dim(self) -> &'a PackedDim<'a>
pub fn unwrap_packed_dim(self) -> &'a PackedDim<'a>
Get the underlying PackedDim, or panic if the node is not a PackedDim.
Sourcepub fn unwrap_unpacked_dim(self) -> &'a UnpackedDim<'a>
pub fn unwrap_unpacked_dim(self) -> &'a UnpackedDim<'a>
Get the underlying UnpackedDim, or panic if the node is not a UnpackedDim.
Sourcepub fn unwrap_path_segment(self) -> &'a PathSegment<'a>
pub fn unwrap_path_segment(self) -> &'a PathSegment<'a>
Get the underlying PathSegment, or panic if the node is not a PathSegment.