Struct moore_vhdl::hir::SubprogInst
source · [−]pub struct SubprogInst {
pub parent: ScopeRef,
pub kind: SubprogKind,
pub name: Spanned<ResolvableName>,
pub subprog: Spanned<LatentSubprogRef>,
pub generic_map: Vec<()>,
}
Expand description
A subprogram instantiation.
See IEEE 1076-2008 section 4.4.
Fields
parent: ScopeRef
The parent scope.
kind: SubprogKind
Whether this is a procedure, pure function, or impure function.
name: Spanned<ResolvableName>
The name of the subprogram.
subprog: Spanned<LatentSubprogRef>
The subprogram to be instantiated.
generic_map: Vec<()>
The generic map.
Trait Implementations
sourceimpl<'a> Alloc<'a, 'a, SubprogInst> for Arenas
impl<'a> Alloc<'a, 'a, SubprogInst> for Arenas
sourcefn alloc(&'a self, value: SubprogInst) -> &'a mut SubprogInst
fn alloc(&'a self, value: SubprogInst) -> &'a mut SubprogInst
Allocate a value of type T
.
sourceimpl Clone for SubprogInst
impl Clone for SubprogInst
sourcefn clone(&self) -> SubprogInst
fn clone(&self) -> SubprogInst
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SubprogInst
impl Debug for SubprogInst
sourceimpl<'lazy, 'sb, 'ast, 'ctx> NodeMaker<SubprogInstRef, &'ctx SubprogInst> for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
impl<'lazy, 'sb, 'ast, 'ctx> NodeMaker<SubprogInstRef, &'ctx SubprogInst> for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
sourcefn make(&self, id: SubprogInstRef) -> Result<&'ctx SubprogInst>
fn make(&self, id: SubprogInstRef) -> Result<&'ctx SubprogInst>
Creates the node with the given ID. Read more
Auto Trait Implementations
impl RefUnwindSafe for SubprogInst
impl Send for SubprogInst
impl Sync for SubprogInst
impl Unpin for SubprogInst
impl UnwindSafe for SubprogInst
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more