pub struct Decl {
pub body: DeclBody,
pub exported: bool,
pub annotations: Vec<Annotation>,
pub loc: Option<Loc>,
}Expand description
a declaration, with whether it is exported and its source range
Fields§
§body: DeclBodythe declaration
exported: boolexport
annotations: Vec<Annotation>the annotations (§5.10)
loc: Option<Loc>the declaration’s source range (Phase 6 foundations); export included
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Decl
impl !Send for Decl
impl !Sync for Decl
impl !UnwindSafe for Decl
impl Freeze for Decl
impl Unpin for Decl
impl UnsafeUnpin for Decl
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