Type Alias FnDefaultRaw

Source
pub type FnDefaultRaw = unsafe fn(dst: *mut u8);
Expand description

Type-erased raw Default::default function pointer type.

Call TypeHelper::fn_default to get the function pointer.

§Panics

If the function pointer was generated from a type that is not Default, calling the function causes panic.

§Safety

  • dst must be a properly aligned and nonnull pointer of a certain type T.
  • dst must be valid for write of T.