Enum moore_vhdl::score::ScopeRef
source · [−]pub enum ScopeRef {
Lib(LibRef),
CtxItems(CtxItemsRef),
Entity(EntityRef),
BuiltinPkg(BuiltinPkgRef),
Pkg(PkgDeclRef),
PkgBody(PkgBodyRef),
Arch(ArchRef),
Process(ProcessStmtRef),
Subprog(SubprogDeclRef),
SubprogBody(SubprogBodyRef),
}
Variants
Lib(LibRef)
CtxItems(CtxItemsRef)
Entity(EntityRef)
BuiltinPkg(BuiltinPkgRef)
Pkg(PkgDeclRef)
PkgBody(PkgBodyRef)
Arch(ArchRef)
Process(ProcessStmtRef)
Subprog(SubprogDeclRef)
SubprogBody(SubprogBodyRef)
Trait Implementations
sourceimpl From<BuiltinPkgRef> for ScopeRef
impl From<BuiltinPkgRef> for ScopeRef
sourcefn from(id: BuiltinPkgRef) -> ScopeRef
fn from(id: BuiltinPkgRef) -> ScopeRef
Performs the conversion.
sourceimpl From<CtxItemsRef> for ScopeRef
impl From<CtxItemsRef> for ScopeRef
sourcefn from(id: CtxItemsRef) -> ScopeRef
fn from(id: CtxItemsRef) -> ScopeRef
Performs the conversion.
sourceimpl From<PkgBodyRef> for ScopeRef
impl From<PkgBodyRef> for ScopeRef
sourcefn from(id: PkgBodyRef) -> ScopeRef
fn from(id: PkgBodyRef) -> ScopeRef
Performs the conversion.
sourceimpl From<PkgDeclRef> for ScopeRef
impl From<PkgDeclRef> for ScopeRef
sourcefn from(id: PkgDeclRef) -> ScopeRef
fn from(id: PkgDeclRef) -> ScopeRef
Performs the conversion.
sourceimpl From<ProcessStmtRef> for ScopeRef
impl From<ProcessStmtRef> for ScopeRef
sourcefn from(id: ProcessStmtRef) -> ScopeRef
fn from(id: ProcessStmtRef) -> ScopeRef
Performs the conversion.
sourceimpl From<SubprogBodyRef> for ScopeRef
impl From<SubprogBodyRef> for ScopeRef
sourcefn from(id: SubprogBodyRef) -> ScopeRef
fn from(id: SubprogBodyRef) -> ScopeRef
Performs the conversion.
sourceimpl From<SubprogDeclRef> for ScopeRef
impl From<SubprogDeclRef> for ScopeRef
sourcefn from(id: SubprogDeclRef) -> ScopeRef
fn from(id: SubprogDeclRef) -> ScopeRef
Performs the conversion.
sourceimpl<'lazy, 'sb, 'ast, 'ctx> NodeMaker<ScopeRef, &'ctx HashMap<ResolvableName, Vec<Spanned<Def>, Global>, RandomState>> for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
impl<'lazy, 'sb, 'ast, 'ctx> NodeMaker<ScopeRef, &'ctx HashMap<ResolvableName, Vec<Spanned<Def>, Global>, RandomState>> for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
sourceimpl<'lazy, 'sb, 'ast, 'ctx> NodeMaker<ScopeRef, &'ctx Scope> for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
impl<'lazy, 'sb, 'ast, 'ctx> NodeMaker<ScopeRef, &'ctx Scope> for ScoreContext<'lazy, 'sb, 'ast, 'ctx>
sourceimpl Ord for ScopeRef
impl Ord for ScopeRef
sourceimpl PartialOrd<ScopeRef> for ScopeRef
impl PartialOrd<ScopeRef> for ScopeRef
sourcefn partial_cmp(&self, other: &ScopeRef) -> Option<Ordering>
fn partial_cmp(&self, other: &ScopeRef) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<'t, 'sbc, 'lazy, 'sb, 'ast, 'ctx> ScopeSpecificTermContext<'t, ScopeRef, Def> for TermContext<&'sbc ScoreContext<'lazy, 'sb, 'ast, 'ctx>, ScopeRef, Def> where
'lazy: 'sbc,
'sb: 'lazy,
'ast: 'sb,
'ctx: 'sb,
impl<'t, 'sbc, 'lazy, 'sb, 'ast, 'ctx> ScopeSpecificTermContext<'t, ScopeRef, Def> for TermContext<&'sbc ScoreContext<'lazy, 'sb, 'ast, 'ctx>, ScopeRef, Def> where
'lazy: 'sbc,
'sb: 'lazy,
'ast: 'sb,
'ctx: 'sb,
sourcefn termify_name_in_scope(
&self,
name: Spanned<ResolvableName>,
scope: ScopeRef
) -> Result<Spanned<Term<'t>>>
fn termify_name_in_scope(
&self,
name: Spanned<ResolvableName>,
scope: ScopeRef
) -> Result<Spanned<Term<'t>>>
Map a resolvable name to a term, resolving it within a scope.
fn maybe_selectable_scope(&self, term: &Term<'t>) -> Option<ScopeRef>
impl Copy for ScopeRef
impl Eq for ScopeRef
impl StructuralEq for ScopeRef
impl StructuralPartialEq for ScopeRef
Auto Trait Implementations
impl RefUnwindSafe for ScopeRef
impl Send for ScopeRef
impl Sync for ScopeRef
impl Unpin for ScopeRef
impl UnwindSafe for ScopeRef
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