Struct vhdl_lang::ast::InstantiationStatement
source · pub struct InstantiationStatement {
pub unit: InstantiatedUnit,
pub generic_map: Option<MapAspect>,
pub port_map: Option<MapAspect>,
/* private fields */
}
Expand description
11.7 Component instantiation statements
Fields§
§unit: InstantiatedUnit
§generic_map: Option<MapAspect>
§port_map: Option<MapAspect>
Implementations§
source§impl InstantiationStatement
impl InstantiationStatement
sourcepub fn entity_reference(&self) -> Option<EntityId>
pub fn entity_reference(&self) -> Option<EntityId>
Returns the reference to the entity declaring this instance
Trait Implementations§
source§impl Clone for InstantiationStatement
impl Clone for InstantiationStatement
source§fn clone(&self) -> InstantiationStatement
fn clone(&self) -> InstantiationStatement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InstantiationStatement
impl Debug for InstantiationStatement
source§impl HasTokenSpan for InstantiationStatement
impl HasTokenSpan for InstantiationStatement
fn get_start_token(&self) -> TokenId
fn get_end_token(&self) -> TokenId
fn get_token_slice<'a>(&self, tokens: &'a dyn TokenAccess) -> &'a [Token]
fn get_pos(&self, tokens: &dyn TokenAccess) -> SrcPos
fn get_span(&self, ctx: &dyn TokenAccess) -> SrcPos
fn span(&self) -> TokenSpan
source§impl PartialEq for InstantiationStatement
impl PartialEq for InstantiationStatement
source§fn eq(&self, other: &InstantiationStatement) -> bool
fn eq(&self, other: &InstantiationStatement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Search for InstantiationStatement
impl Search for InstantiationStatement
fn search( &self, ctx: &dyn TokenAccess, searcher: &mut impl Searcher ) -> SearchResult
impl StructuralPartialEq for InstantiationStatement
Auto Trait Implementations§
impl !Freeze for InstantiationStatement
impl RefUnwindSafe for InstantiationStatement
impl Send for InstantiationStatement
impl Sync for InstantiationStatement
impl Unpin for InstantiationStatement
impl UnwindSafe for InstantiationStatement
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more