Enum vhdl_lang::ast::AnyPrimaryUnit
source · pub enum AnyPrimaryUnit {
Entity(EntityDeclaration),
Configuration(ConfigurationDeclaration),
Package(PackageDeclaration),
PackageInstance(PackageInstantiation),
Context(ContextDeclaration),
}
Expand description
LRM 13.1 Design units
Variants§
Entity(EntityDeclaration)
LRM 3.2 Entity declaration
Configuration(ConfigurationDeclaration)
LRM 3.4 Configuration declarations
Package(PackageDeclaration)
LRM 4.7 Package declarations
PackageInstance(PackageInstantiation)
LRM 4.9 Package instatiation declaration
Context(ContextDeclaration)
LRM 13.4 Context clauses
Trait Implementations§
source§impl Clone for AnyPrimaryUnit
impl Clone for AnyPrimaryUnit
source§fn clone(&self) -> AnyPrimaryUnit
fn clone(&self) -> AnyPrimaryUnit
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 AnyPrimaryUnit
impl Debug for AnyPrimaryUnit
source§impl HasEntityId for AnyPrimaryUnit
impl HasEntityId for AnyPrimaryUnit
source§impl HasTokenSpan for AnyPrimaryUnit
impl HasTokenSpan for AnyPrimaryUnit
fn get_start_token(&self) -> TokenId
fn get_end_token(&self) -> TokenId
fn get_token_slice<'internal_a>( &self, tokens: &'internal_a dyn TokenAccess ) -> &'internal_a [Token]
fn get_pos(&self, ctx: &dyn TokenAccess) -> SrcPos
fn get_span(&self, ctx: &dyn TokenAccess) -> SrcPos
fn span(&self) -> TokenSpan
source§impl PartialEq for AnyPrimaryUnit
impl PartialEq for AnyPrimaryUnit
source§fn eq(&self, other: &AnyPrimaryUnit) -> bool
fn eq(&self, other: &AnyPrimaryUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Search for AnyPrimaryUnit
impl Search for AnyPrimaryUnit
fn search( &self, ctx: &dyn TokenAccess, searcher: &mut impl Searcher ) -> SearchResult
impl StructuralPartialEq for AnyPrimaryUnit
Auto Trait Implementations§
impl !Freeze for AnyPrimaryUnit
impl !RefUnwindSafe for AnyPrimaryUnit
impl Send for AnyPrimaryUnit
impl Sync for AnyPrimaryUnit
impl Unpin for AnyPrimaryUnit
impl !UnwindSafe for AnyPrimaryUnit
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