pub struct Def {
pub kind: DefKind,
pub name: String,
pub module: ModuleId,
pub public: bool,
pub span: Span,
}Expand description
A declaration.
Fields§
§kind: DefKindWhat it is.
name: StringIts name.
module: ModuleIdThe module that declares it.
public: boolpub (variants have the visibility of their enum).
span: SpanThe span of the name in the declaration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Def
impl RefUnwindSafe for Def
impl Send for Def
impl Sync for Def
impl Unpin for Def
impl UnsafeUnpin for Def
impl UnwindSafe for Def
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