Struct vhdl_lang::ast::EntityDeclaration
source · pub struct EntityDeclaration {
pub context_clause: ContextClause,
pub ident: WithDecl<Ident>,
pub generic_clause: Option<Vec<InterfaceDeclaration>>,
pub port_clause: Option<Vec<InterfaceDeclaration>>,
pub decl: Vec<WithTokenSpan<Declaration>>,
pub statements: Vec<LabeledConcurrentStatement>,
pub end_ident_pos: Option<TokenId>,
/* private fields */
}
Expand description
LRM 3.2 Entity declarations
Fields§
§context_clause: ContextClause
§ident: WithDecl<Ident>
§generic_clause: Option<Vec<InterfaceDeclaration>>
§port_clause: Option<Vec<InterfaceDeclaration>>
§decl: Vec<WithTokenSpan<Declaration>>
§statements: Vec<LabeledConcurrentStatement>
§end_ident_pos: Option<TokenId>
Trait Implementations§
source§impl Clone for EntityDeclaration
impl Clone for EntityDeclaration
source§fn clone(&self) -> EntityDeclaration
fn clone(&self) -> EntityDeclaration
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 EntityDeclaration
impl Debug for EntityDeclaration
source§impl Display for EntityDeclaration
impl Display for EntityDeclaration
source§impl HasTokenSpan for EntityDeclaration
impl HasTokenSpan for EntityDeclaration
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 EntityDeclaration
impl PartialEq for EntityDeclaration
source§fn eq(&self, other: &EntityDeclaration) -> bool
fn eq(&self, other: &EntityDeclaration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Search for EntityDeclaration
impl Search for EntityDeclaration
fn search( &self, ctx: &dyn TokenAccess, searcher: &mut impl Searcher ) -> SearchResult
impl StructuralPartialEq for EntityDeclaration
Auto Trait Implementations§
impl !Freeze for EntityDeclaration
impl !RefUnwindSafe for EntityDeclaration
impl Send for EntityDeclaration
impl Sync for EntityDeclaration
impl Unpin for EntityDeclaration
impl !UnwindSafe for EntityDeclaration
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