Struct vhdl_lang::ast::SubprogramBody
source · pub struct SubprogramBody {
pub specification: SubprogramSpecification,
pub declarations: Vec<WithTokenSpan<Declaration>>,
pub statements: Vec<LabeledSequentialStatement>,
pub end_ident_pos: Option<TokenId>,
/* private fields */
}
Expand description
LRM 4.3 Subprogram bodies
Fields§
§specification: SubprogramSpecification
§declarations: Vec<WithTokenSpan<Declaration>>
§statements: Vec<LabeledSequentialStatement>
§end_ident_pos: Option<TokenId>
Trait Implementations§
source§impl Clone for SubprogramBody
impl Clone for SubprogramBody
source§fn clone(&self) -> SubprogramBody
fn clone(&self) -> SubprogramBody
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 SubprogramBody
impl Debug for SubprogramBody
source§impl HasEntityId for SubprogramBody
impl HasEntityId for SubprogramBody
source§impl HasTokenSpan for SubprogramBody
impl HasTokenSpan for SubprogramBody
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 SubprogramBody
impl PartialEq for SubprogramBody
source§fn eq(&self, other: &SubprogramBody) -> bool
fn eq(&self, other: &SubprogramBody) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SubprogramBody
Auto Trait Implementations§
impl !Freeze for SubprogramBody
impl !RefUnwindSafe for SubprogramBody
impl Send for SubprogramBody
impl Sync for SubprogramBody
impl Unpin for SubprogramBody
impl !UnwindSafe for SubprogramBody
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