pub struct ExternDecl {
pub docs: Vec<Doc>,
pub public: bool,
pub kind: ExternDeclKind,
pub from: StrLit,
pub span: Span,
}Expand description
A declaration inside an extern target block.
Fields§
§docs: Vec<Doc>Doc comments.
public: boolpub
kind: ExternDeclKindFunction or type.
from: StrLitThe target path after from.
span: SpanThe whole declaration.
Trait Implementations§
Source§impl Clone for ExternDecl
impl Clone for ExternDecl
Source§impl Debug for ExternDecl
impl Debug for ExternDecl
Source§impl PartialEq for ExternDecl
impl PartialEq for ExternDecl
impl StructuralPartialEq for ExternDecl
Auto Trait Implementations§
impl Freeze for ExternDecl
impl RefUnwindSafe for ExternDecl
impl Send for ExternDecl
impl Sync for ExternDecl
impl Unpin for ExternDecl
impl UnsafeUnpin for ExternDecl
impl UnwindSafe for ExternDecl
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