Safe

Struct Safe 

Source
pub struct Safe;
Expand description

Marker type for safe functions.

Trait Implementations§

Source§

impl Clone for Safe

Source§

fn clone(&self) -> Safe

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Safe

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for Safe

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Safe

Source§

fn eq(&self, other: &Safe) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Safety for Safe

Source§

const IS_SAFE: bool = true

true for safe functions, false for unsafe ones.
Source§

impl<Ret> WithSafety<Safe> for extern "C" fn() -> Ret

Source§

type F = extern "C" fn() -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A> WithSafety<Safe> for extern "C" fn(A) -> Ret

Source§

type F = extern "C" fn(A) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B> WithSafety<Safe> for extern "C" fn(A, B) -> Ret

Source§

type F = extern "C" fn(A, B) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C> WithSafety<Safe> for extern "C" fn(A, B, C) -> Ret

Source§

type F = extern "C" fn(A, B, C) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D> WithSafety<Safe> for extern "C" fn(A, B, C, D) -> Ret

Source§

type F = extern "C" fn(A, B, C, D) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "C" fn(A, B, C, D, E) -> Ret

Source§

type F = extern "C" fn(A, B, C, D, E) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "C" fn(A, B, C, D, E, F) -> Ret

Source§

type F = extern "C" fn(A, B, C, D, E, F) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret> WithSafety<Safe> for extern "C-unwind" fn() -> Ret

Source§

type F = extern "C-unwind" fn() -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A> WithSafety<Safe> for extern "C-unwind" fn(A) -> Ret

Source§

type F = extern "C-unwind" fn(A) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B> WithSafety<Safe> for extern "C-unwind" fn(A, B) -> Ret

Source§

type F = extern "C-unwind" fn(A, B) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C> WithSafety<Safe> for extern "C-unwind" fn(A, B, C) -> Ret

Source§

type F = extern "C-unwind" fn(A, B, C) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D> WithSafety<Safe> for extern "C-unwind" fn(A, B, C, D) -> Ret

Source§

type F = extern "C-unwind" fn(A, B, C, D) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "C-unwind" fn(A, B, C, D, E) -> Ret

Source§

type F = extern "C-unwind" fn(A, B, C, D, E) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "C-unwind" fn(A, B, C, D, E, F) -> Ret

Source§

type F = extern "C-unwind" fn(A, B, C, D, E, F) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret> WithSafety<Safe> for extern "system" fn() -> Ret

Source§

type F = extern "system" fn() -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A> WithSafety<Safe> for extern "system" fn(A) -> Ret

Source§

type F = extern "system" fn(A) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B> WithSafety<Safe> for extern "system" fn(A, B) -> Ret

Source§

type F = extern "system" fn(A, B) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C> WithSafety<Safe> for extern "system" fn(A, B, C) -> Ret

Source§

type F = extern "system" fn(A, B, C) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D> WithSafety<Safe> for extern "system" fn(A, B, C, D) -> Ret

Source§

type F = extern "system" fn(A, B, C, D) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "system" fn(A, B, C, D, E) -> Ret

Source§

type F = extern "system" fn(A, B, C, D, E) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "system" fn(A, B, C, D, E, F) -> Ret

Source§

type F = extern "system" fn(A, B, C, D, E, F) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret> WithSafety<Safe> for extern "system-unwind" fn() -> Ret

Source§

type F = extern "system-unwind" fn() -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A> WithSafety<Safe> for extern "system-unwind" fn(A) -> Ret

Source§

type F = extern "system-unwind" fn(A) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B> WithSafety<Safe> for extern "system-unwind" fn(A, B) -> Ret

Source§

type F = extern "system-unwind" fn(A, B) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C> WithSafety<Safe> for extern "system-unwind" fn(A, B, C) -> Ret

Source§

type F = extern "system-unwind" fn(A, B, C) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D> WithSafety<Safe> for extern "system-unwind" fn(A, B, C, D) -> Ret

Source§

type F = extern "system-unwind" fn(A, B, C, D) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "system-unwind" fn(A, B, C, D, E) -> Ret

Source§

type F = extern "system-unwind" fn(A, B, C, D, E) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "system-unwind" fn(A, B, C, D, E, F) -> Ret

Source§

type F = extern "system-unwind" fn(A, B, C, D, E, F) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret> WithSafety<Safe> for extern "sysv64" fn() -> Ret

Source§

type F = extern "sysv64" fn() -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A> WithSafety<Safe> for extern "sysv64" fn(A) -> Ret

Source§

type F = extern "sysv64" fn(A) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B> WithSafety<Safe> for extern "sysv64" fn(A, B) -> Ret

Source§

type F = extern "sysv64" fn(A, B) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C> WithSafety<Safe> for extern "sysv64" fn(A, B, C) -> Ret

Source§

type F = extern "sysv64" fn(A, B, C) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D> WithSafety<Safe> for extern "sysv64" fn(A, B, C, D) -> Ret

Source§

type F = extern "sysv64" fn(A, B, C, D) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "sysv64" fn(A, B, C, D, E) -> Ret

Source§

type F = extern "sysv64" fn(A, B, C, D, E) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "sysv64" fn(A, B, C, D, E, F) -> Ret

Source§

type F = extern "sysv64" fn(A, B, C, D, E, F) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret> WithSafety<Safe> for extern "sysv64-unwind" fn() -> Ret

Source§

type F = extern "sysv64-unwind" fn() -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A> WithSafety<Safe> for extern "sysv64-unwind" fn(A) -> Ret

Source§

type F = extern "sysv64-unwind" fn(A) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B> WithSafety<Safe> for extern "sysv64-unwind" fn(A, B) -> Ret

Source§

type F = extern "sysv64-unwind" fn(A, B) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C> WithSafety<Safe> for extern "sysv64-unwind" fn(A, B, C) -> Ret

Source§

type F = extern "sysv64-unwind" fn(A, B, C) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D> WithSafety<Safe> for extern "sysv64-unwind" fn(A, B, C, D) -> Ret

Source§

type F = extern "sysv64-unwind" fn(A, B, C, D) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E> WithSafety<Safe> for extern "sysv64-unwind" fn(A, B, C, D, E) -> Ret

Source§

type F = extern "sysv64-unwind" fn(A, B, C, D, E) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for extern "sysv64-unwind" fn(A, B, C, D, E, F) -> Ret

Source§

type F = extern "sysv64-unwind" fn(A, B, C, D, E, F) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret> WithSafety<Safe> for fn() -> Ret

Source§

type F = fn() -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A> WithSafety<Safe> for fn(A) -> Ret

Source§

type F = fn(A) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B> WithSafety<Safe> for fn(A, B) -> Ret

Source§

type F = fn(A, B) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C> WithSafety<Safe> for fn(A, B, C) -> Ret

Source§

type F = fn(A, B, C) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D> WithSafety<Safe> for fn(A, B, C, D) -> Ret

Source§

type F = fn(A, B, C, D) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E> WithSafety<Safe> for fn(A, B, C, D, E) -> Ret

Source§

type F = fn(A, B, C, D, E) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for fn(A, B, C, D, E, F) -> Ret

Source§

type F = fn(A, B, C, D, E, F) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret> WithSafety<Safe> for unsafe extern "C" fn() -> Ret

Source§

type F = extern "C" fn() -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A> WithSafety<Safe> for unsafe extern "C" fn(A) -> Ret

Source§

type F = extern "C" fn(A) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B> WithSafety<Safe> for unsafe extern "C" fn(A, B) -> Ret

Source§

type F = extern "C" fn(A, B) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "C" fn(A, B, C) -> Ret

Source§

type F = extern "C" fn(A, B, C) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "C" fn(A, B, C, D) -> Ret

Source§

type F = extern "C" fn(A, B, C, D) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "C" fn(A, B, C, D, E) -> Ret

Source§

type F = extern "C" fn(A, B, C, D, E) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "C" fn(A, B, C, D, E, F) -> Ret

Source§

type F = extern "C" fn(A, B, C, D, E, F) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret> WithSafety<Safe> for unsafe extern "C-unwind" fn() -> Ret

Source§

type F = extern "C-unwind" fn() -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A> WithSafety<Safe> for unsafe extern "C-unwind" fn(A) -> Ret

Source§

type F = extern "C-unwind" fn(A) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B> WithSafety<Safe> for unsafe extern "C-unwind" fn(A, B) -> Ret

Source§

type F = extern "C-unwind" fn(A, B) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "C-unwind" fn(A, B, C) -> Ret

Source§

type F = extern "C-unwind" fn(A, B, C) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "C-unwind" fn(A, B, C, D) -> Ret

Source§

type F = extern "C-unwind" fn(A, B, C, D) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "C-unwind" fn(A, B, C, D, E) -> Ret

Source§

type F = extern "C-unwind" fn(A, B, C, D, E) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "C-unwind" fn(A, B, C, D, E, F) -> Ret

Source§

type F = extern "C-unwind" fn(A, B, C, D, E, F) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret> WithSafety<Safe> for unsafe extern "system" fn() -> Ret

Source§

type F = extern "system" fn() -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A> WithSafety<Safe> for unsafe extern "system" fn(A) -> Ret

Source§

type F = extern "system" fn(A) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B> WithSafety<Safe> for unsafe extern "system" fn(A, B) -> Ret

Source§

type F = extern "system" fn(A, B) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "system" fn(A, B, C) -> Ret

Source§

type F = extern "system" fn(A, B, C) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "system" fn(A, B, C, D) -> Ret

Source§

type F = extern "system" fn(A, B, C, D) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "system" fn(A, B, C, D, E) -> Ret

Source§

type F = extern "system" fn(A, B, C, D, E) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "system" fn(A, B, C, D, E, F) -> Ret

Source§

type F = extern "system" fn(A, B, C, D, E, F) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret> WithSafety<Safe> for unsafe extern "system-unwind" fn() -> Ret

Source§

type F = extern "system-unwind" fn() -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A> WithSafety<Safe> for unsafe extern "system-unwind" fn(A) -> Ret

Source§

type F = extern "system-unwind" fn(A) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B> WithSafety<Safe> for unsafe extern "system-unwind" fn(A, B) -> Ret

Source§

type F = extern "system-unwind" fn(A, B) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "system-unwind" fn(A, B, C) -> Ret

Source§

type F = extern "system-unwind" fn(A, B, C) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "system-unwind" fn(A, B, C, D) -> Ret

Source§

type F = extern "system-unwind" fn(A, B, C, D) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "system-unwind" fn(A, B, C, D, E) -> Ret

Source§

type F = extern "system-unwind" fn(A, B, C, D, E) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "system-unwind" fn(A, B, C, D, E, F) -> Ret

Source§

type F = extern "system-unwind" fn(A, B, C, D, E, F) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret> WithSafety<Safe> for unsafe extern "sysv64" fn() -> Ret

Source§

type F = extern "sysv64" fn() -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A> WithSafety<Safe> for unsafe extern "sysv64" fn(A) -> Ret

Source§

type F = extern "sysv64" fn(A) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B> WithSafety<Safe> for unsafe extern "sysv64" fn(A, B) -> Ret

Source§

type F = extern "sysv64" fn(A, B) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "sysv64" fn(A, B, C) -> Ret

Source§

type F = extern "sysv64" fn(A, B, C) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "sysv64" fn(A, B, C, D) -> Ret

Source§

type F = extern "sysv64" fn(A, B, C, D) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "sysv64" fn(A, B, C, D, E) -> Ret

Source§

type F = extern "sysv64" fn(A, B, C, D, E) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "sysv64" fn(A, B, C, D, E, F) -> Ret

Source§

type F = extern "sysv64" fn(A, B, C, D, E, F) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn() -> Ret

Source§

type F = extern "sysv64-unwind" fn() -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A) -> Ret

Source§

type F = extern "sysv64-unwind" fn(A) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A, B) -> Ret

Source§

type F = extern "sysv64-unwind" fn(A, B) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A, B, C) -> Ret

Source§

type F = extern "sysv64-unwind" fn(A, B, C) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A, B, C, D) -> Ret

Source§

type F = extern "sysv64-unwind" fn(A, B, C, D) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A, B, C, D, E) -> Ret

Source§

type F = extern "sysv64-unwind" fn(A, B, C, D, E) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe extern "sysv64-unwind" fn(A, B, C, D, E, F) -> Ret

Source§

type F = extern "sysv64-unwind" fn(A, B, C, D, E, F) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret> WithSafety<Safe> for unsafe fn() -> Ret

Source§

type F = fn() -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A> WithSafety<Safe> for unsafe fn(A) -> Ret

Source§

type F = fn(A) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B> WithSafety<Safe> for unsafe fn(A, B) -> Ret

Source§

type F = fn(A, B) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C> WithSafety<Safe> for unsafe fn(A, B, C) -> Ret

Source§

type F = fn(A, B, C) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D> WithSafety<Safe> for unsafe fn(A, B, C, D) -> Ret

Source§

type F = fn(A, B, C, D) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E> WithSafety<Safe> for unsafe fn(A, B, C, D, E) -> Ret

Source§

type F = fn(A, B, C, D, E) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl<Ret, A, B, C, D, E, F> WithSafety<Safe> for unsafe fn(A, B, C, D, E, F) -> Ret

Source§

type F = fn(A, B, C, D, E, F) -> Ret

The function pointer type with the requested safety (preserving ABI and signature).
Source§

impl Copy for Safe

Source§

impl Eq for Safe

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DropFlavorWrapper<T> for T

Source§

type Flavor = MayDrop

The DropFlavor that wraps T into Self
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, W> HasTypeWitness<W> for T
where W: MakeTypeWitness<Arg = T>, T: ?Sized,

Source§

const WITNESS: W = W::MAKE

A constant of the type witness
Source§

impl<T> Identity for T
where T: ?Sized,

Source§

const TYPE_EQ: TypeEq<T, <T as Identity>::Type> = TypeEq::NEW

Proof that Self is the same type as Self::Type, provides methods for casting between Self and Self::Type.
Source§

type Type = T

The same type as Self, used to emulate type equality bounds (T == U) with associated type equality constraints (T: Identity<Type = U>).
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.