pub struct Decl {
pub attributes: Vec<Attribute>,
pub doc: Vec<String>,
pub modifiers: Vec<Modifier>,
pub kind: DeclKind,
pub span: Span,
}Expand description
A declaration, its attributes, documentation and modifiers.
Fields§
§attributes: Vec<Attribute>§doc: Vec<String>§modifiers: Vec<Modifier>§kind: DeclKind§span: SpanImplementations§
Trait Implementations§
impl StructuralPartialEq for Decl
Auto Trait Implementations§
impl Freeze for Decl
impl RefUnwindSafe for Decl
impl Send for Decl
impl Sync for Decl
impl Unpin for Decl
impl UnsafeUnpin for Decl
impl UnwindSafe 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