pub struct ExternBlock {
pub docs: Vec<Spanned<String>>,
pub attrs: Vec<Attribute>,
pub abi: Option<String>,
pub items: Vec<ExternItem>,
}Expand description
An extern block for FFI declarations.
Fields§
§docs: Vec<Spanned<String>>The /// lines before it, one entry per line, holding the text after
the /// (spec
docs/superpowers/specs/2026-10-07-phase-3-1-formatter-design.md §4).
attrs: Vec<Attribute>§abi: Option<String>§items: Vec<ExternItem>Trait Implementations§
Source§impl Clone for ExternBlock
impl Clone for ExternBlock
Auto Trait Implementations§
impl Freeze for ExternBlock
impl RefUnwindSafe for ExternBlock
impl Send for ExternBlock
impl Sync for ExternBlock
impl Unpin for ExternBlock
impl UnsafeUnpin for ExternBlock
impl UnwindSafe for ExternBlock
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