pub struct ExternBlock {
pub abi: Option<String>,
pub functions: Vec<String>,
pub line: usize,
}Expand description
An extern block declaring foreign functions.
Any extern block is flagged as Category::Ffi
by the detector, since FFI calls bypass Rust’s safety model entirely.
Fields§
§abi: Option<String>The ABI string (e.g., Some("C") for extern "C").
functions: Vec<String>Names of functions declared in the block.
line: usizeSource line number.
Trait Implementations§
Source§impl Clone for ExternBlock
impl Clone for ExternBlock
Source§fn clone(&self) -> ExternBlock
fn clone(&self) -> ExternBlock
Returns a duplicate of the value. Read more
1.0.0 · 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 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