pub struct PackageDeclaration {
pub context_clause: ContextClause,
pub ident: Ident,
pub generic_clause: Option<Vec<InterfaceDeclaration>>,
pub decl: Vec<Declaration>,
}
Expand description
LRM 4.7 Package declarations
Fields§
§context_clause: ContextClause
§ident: Ident
§generic_clause: Option<Vec<InterfaceDeclaration>>
§decl: Vec<Declaration>
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 HasIdent for PackageDeclaration
impl HasIdent for PackageDeclaration
Source§impl PartialEq for PackageDeclaration
impl PartialEq for PackageDeclaration
Source§impl Search for PackageDeclaration
impl Search for PackageDeclaration
fn search(&self, 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