Enum vhdl_lang::ast::AnySecondaryUnit
source · pub enum AnySecondaryUnit {
Architecture(ArchitectureBody),
PackageBody(PackageBody),
}
Expand description
LRM 13.1 Design units
Variants§
Architecture(ArchitectureBody)
LRM 3.3 Architecture bodies
PackageBody(PackageBody)
LRM 4.8 Package bodies
Trait Implementations§
source§impl Clone for AnySecondaryUnit
impl Clone for AnySecondaryUnit
source§fn clone(&self) -> AnySecondaryUnit
fn clone(&self) -> AnySecondaryUnit
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 AnySecondaryUnit
impl Debug for AnySecondaryUnit
source§impl HasTokenSpan for AnySecondaryUnit
impl HasTokenSpan for AnySecondaryUnit
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 AnySecondaryUnit
impl PartialEq for AnySecondaryUnit
source§impl Search for AnySecondaryUnit
impl Search for AnySecondaryUnit
fn search( &self, ctx: &dyn TokenAccess, searcher: &mut impl Searcher, ) -> SearchResult
impl StructuralPartialEq for AnySecondaryUnit
Auto Trait Implementations§
impl !Freeze for AnySecondaryUnit
impl !RefUnwindSafe for AnySecondaryUnit
impl Send for AnySecondaryUnit
impl Sync for AnySecondaryUnit
impl Unpin for AnySecondaryUnit
impl !UnwindSafe for AnySecondaryUnit
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