Enum moore_svlog::ast::DpiDeclData [−][src]
pub enum DpiDeclData<'a> {
Import {
spec: Spanned<Name>,
property: Option<Spanned<DpiProperty>>,
cident: Option<Spanned<Name>>,
prototype: Node<'a, SubroutinePrototypeData<'a>>,
},
Export {
spec: Spanned<Name>,
cident: Option<Spanned<Name>>,
kind: SubroutineKind,
name: Spanned<Name>,
},
}
Expand description
A DPI declaration such as import "DPI-C"
or export "DPI-C"
.
Variants
An import
.
Fields of Import
spec: Spanned<Name>
property: Option<Spanned<DpiProperty>>
cident: Option<Spanned<Name>>
prototype: Node<'a, SubroutinePrototypeData<'a>>
An export
.
Fields of Export
Trait Implementations
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
Apply a function to each child node.
Apply a function to this node.
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<'a> !RefUnwindSafe for DpiDeclData<'a>
impl<'a> Send for DpiDeclData<'a>
impl<'a> Sync for DpiDeclData<'a>
impl<'a> Unpin for DpiDeclData<'a>
impl<'a> !UnwindSafe for DpiDeclData<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more