pub struct Safe;Expand description
Marker type for safe functions.
Trait Implementations§
Source§impl<Ret> WithSafety<Safe> for extern "C" fn() -> Ret
impl<Ret> WithSafety<Safe> for extern "C" fn() -> Ret
Source§impl<Ret, A> WithSafety<Safe> for extern "C" fn(A) -> Ret
impl<Ret, A> WithSafety<Safe> for extern "C" fn(A) -> Ret
Source§impl<Ret, A, B> WithSafety<Safe> for extern "C" fn(A, B) -> Ret
impl<Ret, A, B> WithSafety<Safe> for extern "C" fn(A, B) -> Ret
Source§impl<Ret, A, B, C> WithSafety<Safe> for extern "C" fn(A, B, C) -> Ret
impl<Ret, A, B, C> WithSafety<Safe> for extern "C" fn(A, B, C) -> Ret
Source§impl<Ret, A, B, C, D> WithSafety<Safe> for extern "C" fn(A, B, C, D) -> Ret
impl<Ret, A, B, C, D> WithSafety<Safe> for extern "C" fn(A, B, C, D) -> Ret
Source§impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "C" fn(A, B, C, D, E) -> Ret
impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "C" fn(A, B, C, D, E) -> Ret
Source§impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "C" fn(A, B, C, D, E, F) -> Ret
impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "C" fn(A, B, C, D, E, F) -> Ret
Source§impl<Ret> WithSafety<Safe> for extern "C-unwind" fn() -> Ret
impl<Ret> WithSafety<Safe> for extern "C-unwind" fn() -> Ret
Source§impl<Ret, A> WithSafety<Safe> for extern "C-unwind" fn(A) -> Ret
impl<Ret, A> WithSafety<Safe> for extern "C-unwind" fn(A) -> Ret
Source§impl<Ret, A, B> WithSafety<Safe> for extern "C-unwind" fn(A, B) -> Ret
impl<Ret, A, B> WithSafety<Safe> for extern "C-unwind" fn(A, B) -> Ret
Source§impl<Ret, A, B, C> WithSafety<Safe> for extern "C-unwind" fn(A, B, C) -> Ret
impl<Ret, A, B, C> WithSafety<Safe> for extern "C-unwind" fn(A, B, C) -> Ret
Source§impl<Ret, A, B, C, D> WithSafety<Safe> for extern "C-unwind" fn(A, B, C, D) -> Ret
impl<Ret, A, B, C, D> WithSafety<Safe> for extern "C-unwind" fn(A, B, C, D) -> Ret
Source§impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "C-unwind" fn(A, B, C, D, E) -> Ret
impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "C-unwind" fn(A, B, C, D, E) -> Ret
Source§impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "C-unwind" fn(A, B, C, D, E, F) -> Ret
impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "C-unwind" fn(A, B, C, D, E, F) -> Ret
Source§impl<Ret> WithSafety<Safe> for extern "system" fn() -> Ret
impl<Ret> WithSafety<Safe> for extern "system" fn() -> Ret
Source§impl<Ret, A> WithSafety<Safe> for extern "system" fn(A) -> Ret
impl<Ret, A> WithSafety<Safe> for extern "system" fn(A) -> Ret
Source§impl<Ret, A, B> WithSafety<Safe> for extern "system" fn(A, B) -> Ret
impl<Ret, A, B> WithSafety<Safe> for extern "system" fn(A, B) -> Ret
Source§impl<Ret, A, B, C> WithSafety<Safe> for extern "system" fn(A, B, C) -> Ret
impl<Ret, A, B, C> WithSafety<Safe> for extern "system" fn(A, B, C) -> Ret
Source§impl<Ret, A, B, C, D> WithSafety<Safe> for extern "system" fn(A, B, C, D) -> Ret
impl<Ret, A, B, C, D> WithSafety<Safe> for extern "system" fn(A, B, C, D) -> Ret
Source§impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "system" fn(A, B, C, D, E) -> Ret
impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "system" fn(A, B, C, D, E) -> Ret
Source§impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "system" fn(A, B, C, D, E, F) -> Ret
impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "system" fn(A, B, C, D, E, F) -> Ret
Source§impl<Ret> WithSafety<Safe> for extern "system-unwind" fn() -> Ret
impl<Ret> WithSafety<Safe> for extern "system-unwind" fn() -> Ret
Source§impl<Ret, A> WithSafety<Safe> for extern "system-unwind" fn(A) -> Ret
impl<Ret, A> WithSafety<Safe> for extern "system-unwind" fn(A) -> Ret
Source§impl<Ret, A, B> WithSafety<Safe> for extern "system-unwind" fn(A, B) -> Ret
impl<Ret, A, B> WithSafety<Safe> for extern "system-unwind" fn(A, B) -> Ret
Source§impl<Ret, A, B, C> WithSafety<Safe> for extern "system-unwind" fn(A, B, C) -> Ret
impl<Ret, A, B, C> WithSafety<Safe> for extern "system-unwind" fn(A, B, C) -> Ret
Source§impl<Ret, A, B, C, D> WithSafety<Safe> for extern "system-unwind" fn(A, B, C, D) -> Ret
impl<Ret, A, B, C, D> WithSafety<Safe> for extern "system-unwind" fn(A, B, C, D) -> Ret
Source§impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "system-unwind" fn(A, B, C, D, E) -> Ret
impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "system-unwind" fn(A, B, C, D, E) -> Ret
Source§impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "system-unwind" fn(A, B, C, D, E, F) -> Ret
impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "system-unwind" fn(A, B, C, D, E, F) -> Ret
Source§impl<Ret> WithSafety<Safe> for extern "sysv64" fn() -> Ret
impl<Ret> WithSafety<Safe> for extern "sysv64" fn() -> Ret
Source§impl<Ret, A> WithSafety<Safe> for extern "sysv64" fn(A) -> Ret
impl<Ret, A> WithSafety<Safe> for extern "sysv64" fn(A) -> Ret
Source§impl<Ret, A, B> WithSafety<Safe> for extern "sysv64" fn(A, B) -> Ret
impl<Ret, A, B> WithSafety<Safe> for extern "sysv64" fn(A, B) -> Ret
Source§impl<Ret, A, B, C> WithSafety<Safe> for extern "sysv64" fn(A, B, C) -> Ret
impl<Ret, A, B, C> WithSafety<Safe> for extern "sysv64" fn(A, B, C) -> Ret
Source§impl<Ret, A, B, C, D> WithSafety<Safe> for extern "sysv64" fn(A, B, C, D) -> Ret
impl<Ret, A, B, C, D> WithSafety<Safe> for extern "sysv64" fn(A, B, C, D) -> Ret
Source§impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "sysv64" fn(A, B, C, D, E) -> Ret
impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "sysv64" fn(A, B, C, D, E) -> Ret
Source§impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "sysv64" fn(A, B, C, D, E, F) -> Ret
impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "sysv64" fn(A, B, C, D, E, F) -> Ret
Source§impl<Ret> WithSafety<Safe> for extern "sysv64-unwind" fn() -> Ret
impl<Ret> WithSafety<Safe> for extern "sysv64-unwind" fn() -> Ret
Source§impl<Ret, A> WithSafety<Safe> for extern "sysv64-unwind" fn(A) -> Ret
impl<Ret, A> WithSafety<Safe> for extern "sysv64-unwind" fn(A) -> Ret
Source§impl<Ret, A, B> WithSafety<Safe> for extern "sysv64-unwind" fn(A, B) -> Ret
impl<Ret, A, B> WithSafety<Safe> for extern "sysv64-unwind" fn(A, B) -> Ret
Source§impl<Ret, A, B, C> WithSafety<Safe> for extern "sysv64-unwind" fn(A, B, C) -> Ret
impl<Ret, A, B, C> WithSafety<Safe> for extern "sysv64-unwind" fn(A, B, C) -> Ret
Source§impl<Ret, A, B, C, D> WithSafety<Safe> for extern "sysv64-unwind" fn(A, B, C, D) -> Ret
impl<Ret, A, B, C, D> WithSafety<Safe> for extern "sysv64-unwind" fn(A, B, C, D) -> Ret
Source§impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "sysv64-unwind" fn(A, B, C, D, E) -> Ret
impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "sysv64-unwind" fn(A, B, C, D, E) -> Ret
Source§impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "sysv64-unwind" fn(A, B, C, D, E, F) -> Ret
impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "sysv64-unwind" fn(A, B, C, D, E, F) -> Ret
Source§impl<Ret> WithSafety<Safe> for fn() -> Ret
impl<Ret> WithSafety<Safe> for fn() -> Ret
Source§impl<Ret, A> WithSafety<Safe> for fn(A) -> Ret
impl<Ret, A> WithSafety<Safe> for fn(A) -> Ret
Source§impl<Ret, A, B> WithSafety<Safe> for fn(A, B) -> Ret
impl<Ret, A, B> WithSafety<Safe> for fn(A, B) -> Ret
Source§impl<Ret, A, B, C> WithSafety<Safe> for fn(A, B, C) -> Ret
impl<Ret, A, B, C> WithSafety<Safe> for fn(A, B, C) -> Ret
Source§impl<Ret, A, B, C, D> WithSafety<Safe> for fn(A, B, C, D) -> Ret
impl<Ret, A, B, C, D> WithSafety<Safe> for fn(A, B, C, D) -> Ret
Source§impl<Ret, A, B, C, D, E> WithSafety<Safe> for fn(A, B, C, D, E) -> Ret
impl<Ret, A, B, C, D, E> WithSafety<Safe> for fn(A, B, C, D, E) -> Ret
Source§impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for fn(A, B, C, D, E, F) -> Ret
impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for fn(A, B, C, D, E, F) -> Ret
Source§impl<Ret> WithSafety<Safe> for unsafe extern "C" fn() -> Ret
impl<Ret> WithSafety<Safe> for unsafe extern "C" fn() -> Ret
Source§impl<Ret, A> WithSafety<Safe> for unsafe extern "C" fn(A) -> Ret
impl<Ret, A> WithSafety<Safe> for unsafe extern "C" fn(A) -> Ret
Source§impl<Ret, A, B> WithSafety<Safe> for unsafe extern "C" fn(A, B) -> Ret
impl<Ret, A, B> WithSafety<Safe> for unsafe extern "C" fn(A, B) -> Ret
Source§impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "C" fn(A, B, C) -> Ret
impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "C" fn(A, B, C) -> Ret
Source§impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "C" fn(A, B, C, D) -> Ret
impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "C" fn(A, B, C, D) -> Ret
Source§impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "C" fn(A, B, C, D, E) -> Ret
impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "C" fn(A, B, C, D, E) -> Ret
Source§impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "C" fn(A, B, C, D, E, F) -> Ret
impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "C" fn(A, B, C, D, E, F) -> Ret
Source§impl<Ret> WithSafety<Safe> for unsafe extern "C-unwind" fn() -> Ret
impl<Ret> WithSafety<Safe> for unsafe extern "C-unwind" fn() -> Ret
Source§impl<Ret, A> WithSafety<Safe> for unsafe extern "C-unwind" fn(A) -> Ret
impl<Ret, A> WithSafety<Safe> for unsafe extern "C-unwind" fn(A) -> Ret
Source§impl<Ret, A, B> WithSafety<Safe> for unsafe extern "C-unwind" fn(A, B) -> Ret
impl<Ret, A, B> WithSafety<Safe> for unsafe extern "C-unwind" fn(A, B) -> Ret
Source§impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "C-unwind" fn(A, B, C) -> Ret
impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "C-unwind" fn(A, B, C) -> Ret
Source§impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "C-unwind" fn(A, B, C, D) -> Ret
impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "C-unwind" fn(A, B, C, D) -> Ret
Source§impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "C-unwind" fn(A, B, C, D, E) -> Ret
impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "C-unwind" fn(A, B, C, D, E) -> Ret
Source§impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "C-unwind" fn(A, B, C, D, E, F) -> Ret
impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "C-unwind" fn(A, B, C, D, E, F) -> Ret
Source§impl<Ret> WithSafety<Safe> for unsafe extern "system" fn() -> Ret
impl<Ret> WithSafety<Safe> for unsafe extern "system" fn() -> Ret
Source§impl<Ret, A> WithSafety<Safe> for unsafe extern "system" fn(A) -> Ret
impl<Ret, A> WithSafety<Safe> for unsafe extern "system" fn(A) -> Ret
Source§impl<Ret, A, B> WithSafety<Safe> for unsafe extern "system" fn(A, B) -> Ret
impl<Ret, A, B> WithSafety<Safe> for unsafe extern "system" fn(A, B) -> Ret
Source§impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "system" fn(A, B, C) -> Ret
impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "system" fn(A, B, C) -> Ret
Source§impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "system" fn(A, B, C, D) -> Ret
impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "system" fn(A, B, C, D) -> Ret
Source§impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "system" fn(A, B, C, D, E) -> Ret
impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "system" fn(A, B, C, D, E) -> Ret
Source§impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "system" fn(A, B, C, D, E, F) -> Ret
impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "system" fn(A, B, C, D, E, F) -> Ret
Source§impl<Ret> WithSafety<Safe> for unsafe extern "system-unwind" fn() -> Ret
impl<Ret> WithSafety<Safe> for unsafe extern "system-unwind" fn() -> Ret
Source§impl<Ret, A> WithSafety<Safe> for unsafe extern "system-unwind" fn(A) -> Ret
impl<Ret, A> WithSafety<Safe> for unsafe extern "system-unwind" fn(A) -> Ret
Source§impl<Ret, A, B> WithSafety<Safe> for unsafe extern "system-unwind" fn(A, B) -> Ret
impl<Ret, A, B> WithSafety<Safe> for unsafe extern "system-unwind" fn(A, B) -> Ret
Source§impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "system-unwind" fn(A, B, C) -> Ret
impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "system-unwind" fn(A, B, C) -> Ret
Source§impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "system-unwind" fn(A, B, C, D) -> Ret
impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "system-unwind" fn(A, B, C, D) -> Ret
Source§impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "system-unwind" fn(A, B, C, D, E) -> Ret
impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "system-unwind" fn(A, B, C, D, E) -> Ret
Source§impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "system-unwind" fn(A, B, C, D, E, F) -> Ret
impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "system-unwind" fn(A, B, C, D, E, F) -> Ret
Source§impl<Ret> WithSafety<Safe> for unsafe extern "sysv64" fn() -> Ret
impl<Ret> WithSafety<Safe> for unsafe extern "sysv64" fn() -> Ret
Source§impl<Ret, A> WithSafety<Safe> for unsafe extern "sysv64" fn(A) -> Ret
impl<Ret, A> WithSafety<Safe> for unsafe extern "sysv64" fn(A) -> Ret
Source§impl<Ret, A, B> WithSafety<Safe> for unsafe extern "sysv64" fn(A, B) -> Ret
impl<Ret, A, B> WithSafety<Safe> for unsafe extern "sysv64" fn(A, B) -> Ret
Source§impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "sysv64" fn(A, B, C) -> Ret
impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "sysv64" fn(A, B, C) -> Ret
Source§impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "sysv64" fn(A, B, C, D) -> Ret
impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "sysv64" fn(A, B, C, D) -> Ret
Source§impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "sysv64" fn(A, B, C, D, E) -> Ret
impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "sysv64" fn(A, B, C, D, E) -> Ret
Source§impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "sysv64" fn(A, B, C, D, E, F) -> Ret
impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "sysv64" fn(A, B, C, D, E, F) -> Ret
Source§impl<Ret> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn() -> Ret
impl<Ret> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn() -> Ret
Source§impl<Ret, A> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A) -> Ret
impl<Ret, A> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A) -> Ret
Source§impl<Ret, A, B> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A, B) -> Ret
impl<Ret, A, B> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A, B) -> Ret
Source§impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A, B, C) -> Ret
impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A, B, C) -> Ret
Source§impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A, B, C, D) -> Ret
impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A, B, C, D) -> Ret
Source§impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A, B, C, D, E) -> Ret
impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A, B, C, D, E) -> Ret
Source§impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A, B, C, D, E, F) -> Ret
impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A, B, C, D, E, F) -> Ret
Source§impl<Ret> WithSafety<Safe> for unsafe fn() -> Ret
impl<Ret> WithSafety<Safe> for unsafe fn() -> Ret
Source§impl<Ret, A> WithSafety<Safe> for unsafe fn(A) -> Ret
impl<Ret, A> WithSafety<Safe> for unsafe fn(A) -> Ret
Source§impl<Ret, A, B> WithSafety<Safe> for unsafe fn(A, B) -> Ret
impl<Ret, A, B> WithSafety<Safe> for unsafe fn(A, B) -> Ret
Source§impl<Ret, A, B, C> WithSafety<Safe> for unsafe fn(A, B, C) -> Ret
impl<Ret, A, B, C> WithSafety<Safe> for unsafe fn(A, B, C) -> Ret
Source§impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe fn(A, B, C, D) -> Ret
impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe fn(A, B, C, D) -> Ret
Source§impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe fn(A, B, C, D, E) -> Ret
impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe fn(A, B, C, D, E) -> Ret
Source§impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe fn(A, B, C, D, E, F) -> Ret
impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe fn(A, B, C, D, E, F) -> Ret
impl Copy for Safe
impl Eq for Safe
impl StructuralPartialEq for Safe
Auto Trait Implementations§
impl Freeze for Safe
impl RefUnwindSafe for Safe
impl Send for Safe
impl Sync for Safe
impl Unpin for Safe
impl UnwindSafe for Safe
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