pub struct ModUnsafeExtern<Abi>(pub Abi);Expand description
The extern modifier, with the ABI selected as the tuple value.
This struct includes unsafe. Since Rust 2024, the unsafe keyword is required for extern
functions, and before Rust 2024 it is optional. To make it easy to generate code targeting
multiple editions, we unconditionally emit the “unsafe” keyword alongside “extern”.
Tuple Fields§
§0: AbiTrait Implementations§
Source§impl<Abi: Clone> Clone for ModUnsafeExtern<Abi>
impl<Abi: Clone> Clone for ModUnsafeExtern<Abi>
Source§fn clone(&self) -> ModUnsafeExtern<Abi>
fn clone(&self) -> ModUnsafeExtern<Abi>
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 moreSource§impl<Abi: Debug> Debug for ModUnsafeExtern<Abi>
impl<Abi: Debug> Debug for ModUnsafeExtern<Abi>
Auto Trait Implementations§
impl<Abi> Freeze for ModUnsafeExtern<Abi>where
Abi: Freeze,
impl<Abi> RefUnwindSafe for ModUnsafeExtern<Abi>where
Abi: RefUnwindSafe,
impl<Abi> Send for ModUnsafeExtern<Abi>where
Abi: Send,
impl<Abi> Sync for ModUnsafeExtern<Abi>where
Abi: Sync,
impl<Abi> Unpin for ModUnsafeExtern<Abi>where
Abi: Unpin,
impl<Abi> UnwindSafe for ModUnsafeExtern<Abi>where
Abi: UnwindSafe,
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