pub struct ForeignDecl {
pub doc: Option<DocComment>,
pub kind: ForeignKind,
pub convention: Symbol,
pub safety: ForeignSafety,
pub external_name: Option<String>,
pub name: Ident,
pub ty: Type,
pub span: Span,
}Expand description
A foreign declaration.
Fields§
§doc: Option<DocComment>Documentation comment.
kind: ForeignKindImport or export.
convention: SymbolCalling convention.
safety: ForeignSafetySafety annotation.
external_name: Option<String>External name.
name: IdentHaskell name.
ty: TypeType signature.
span: SpanThe span.
Trait Implementations§
Source§impl Clone for ForeignDecl
impl Clone for ForeignDecl
Source§fn clone(&self) -> ForeignDecl
fn clone(&self) -> ForeignDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ForeignDecl
impl RefUnwindSafe for ForeignDecl
impl Send for ForeignDecl
impl Sync for ForeignDecl
impl Unpin for ForeignDecl
impl UnsafeUnpin for ForeignDecl
impl UnwindSafe for ForeignDecl
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