Struct vhdl_lang::ast::PackageDeclaration
source · pub struct PackageDeclaration {
pub context_clause: ContextClause,
pub ident: WithDecl<Ident>,
pub generic_clause: Option<InterfaceList>,
pub decl: Vec<WithTokenSpan<Declaration>>,
pub end_token: TokenId,
pub end_ident_pos: Option<TokenId>,
/* private fields */
}
Expand description
LRM 4.7 Package declarations
Fields§
§context_clause: ContextClause
§ident: WithDecl<Ident>
§generic_clause: Option<InterfaceList>
§decl: Vec<WithTokenSpan<Declaration>>
§end_token: TokenId
§end_ident_pos: Option<TokenId>
Trait Implementations§
source§impl Clone for PackageDeclaration
impl Clone for PackageDeclaration
source§fn clone(&self) -> PackageDeclaration
fn clone(&self) -> PackageDeclaration
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 PackageDeclaration
impl Debug for PackageDeclaration
source§impl Display for PackageDeclaration
impl Display for PackageDeclaration
source§impl HasTokenSpan for PackageDeclaration
impl HasTokenSpan for PackageDeclaration
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 PackageDeclaration
impl PartialEq for PackageDeclaration
source§impl Search for PackageDeclaration
impl Search for PackageDeclaration
fn search( &self, ctx: &dyn TokenAccess, searcher: &mut impl Searcher, ) -> SearchResult
impl StructuralPartialEq for PackageDeclaration
Auto Trait Implementations§
impl !Freeze for PackageDeclaration
impl !RefUnwindSafe for PackageDeclaration
impl Send for PackageDeclaration
impl Sync for PackageDeclaration
impl Unpin for PackageDeclaration
impl !UnwindSafe for PackageDeclaration
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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