Struct vhdl_lang::ast::FileDeclaration
source · pub struct FileDeclaration {
pub ident: WithDecl<Ident>,
pub subtype_indication: SubtypeIndication,
pub open_info: Option<WithTokenSpan<Expression>>,
pub file_name: Option<WithTokenSpan<Expression>>,
}
Fields§
§ident: WithDecl<Ident>
§subtype_indication: SubtypeIndication
§open_info: Option<WithTokenSpan<Expression>>
§file_name: Option<WithTokenSpan<Expression>>
Trait Implementations§
source§impl Clone for FileDeclaration
impl Clone for FileDeclaration
source§fn clone(&self) -> FileDeclaration
fn clone(&self) -> FileDeclaration
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 FileDeclaration
impl Debug for FileDeclaration
source§impl Display for FileDeclaration
impl Display for FileDeclaration
source§impl HasEntityId for FileDeclaration
impl HasEntityId for FileDeclaration
source§impl PartialEq for FileDeclaration
impl PartialEq for FileDeclaration
source§fn eq(&self, other: &FileDeclaration) -> bool
fn eq(&self, other: &FileDeclaration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FileDeclaration
Auto Trait Implementations§
impl !Freeze for FileDeclaration
impl RefUnwindSafe for FileDeclaration
impl Send for FileDeclaration
impl Sync for FileDeclaration
impl Unpin for FileDeclaration
impl UnwindSafe for FileDeclaration
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