Struct vhdl_lang::ast::SubprogramDeclaration
source · pub struct SubprogramDeclaration {
pub specification: SubprogramSpecification,
/* private fields */
}
Expand description
LRM 4.2 Subprogram declarations
Fields§
§specification: SubprogramSpecification
Implementations§
source§impl SubprogramDeclaration
impl SubprogramDeclaration
pub fn subpgm_designator(&self) -> &WithToken<SubprogramDesignator>
pub fn reference_mut(&mut self) -> &mut Reference
Trait Implementations§
source§impl Clone for SubprogramDeclaration
impl Clone for SubprogramDeclaration
source§fn clone(&self) -> SubprogramDeclaration
fn clone(&self) -> SubprogramDeclaration
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 SubprogramDeclaration
impl Debug for SubprogramDeclaration
source§impl Display for SubprogramDeclaration
impl Display for SubprogramDeclaration
source§impl HasTokenSpan for SubprogramDeclaration
impl HasTokenSpan for SubprogramDeclaration
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 SubprogramDeclaration
impl PartialEq for SubprogramDeclaration
source§fn eq(&self, other: &SubprogramDeclaration) -> bool
fn eq(&self, other: &SubprogramDeclaration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Search for SubprogramDeclaration
impl Search for SubprogramDeclaration
fn search( &self, ctx: &dyn TokenAccess, searcher: &mut impl Searcher ) -> SearchResult
impl StructuralPartialEq for SubprogramDeclaration
Auto Trait Implementations§
impl !Freeze for SubprogramDeclaration
impl RefUnwindSafe for SubprogramDeclaration
impl Send for SubprogramDeclaration
impl Sync for SubprogramDeclaration
impl Unpin for SubprogramDeclaration
impl UnwindSafe for SubprogramDeclaration
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