Struct moore_svlog::hir::Subroutine [−][src]
pub struct Subroutine {
pub id: NodeId,
pub name: Spanned<Name>,
pub span: Span,
pub kind: SubroutineKind,
pub retty: Option<NodeId>,
}
Expand description
A subroutine declaration.
Fields
id: NodeId
name: Spanned<Name>
span: Span
kind: SubroutineKind
Whether this is a task or function.
retty: Option<NodeId>
Optional return type in case of a function.
Trait Implementations
Allocate a value of type T
.
Obtain a span which can be used to refer to this node in error messages
presented to humans. This will generally be the name for things like
entities, processes, and variables. Defaults to return whatever span()
returns. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Subroutine
impl Send for Subroutine
impl Sync for Subroutine
impl Unpin for Subroutine
impl UnwindSafe for Subroutine
Blanket Implementations
Mutably borrows from an owned value. Read more