pub struct FnPtr {
pub unsafety: bool,
pub abi: Abi,
pub inputs: &'static [TypeId],
pub output: TypeId,
pub variadic: bool,
}๐ฌThis is a nightly-only experimental API. (
type_info #146922)Expand description
Function pointer, e.g. fn(u8),
Fieldsยง
ยงunsafety: bool๐ฌThis is a nightly-only experimental API. (
type_info #146922)Unsafety, true is unsafe
abi: Abi๐ฌThis is a nightly-only experimental API. (
type_info #146922)Abi, e.g. extern โCโ
inputs: &'static [TypeId]๐ฌThis is a nightly-only experimental API. (
type_info #146922)Function inputs
output: TypeId๐ฌThis is a nightly-only experimental API. (
type_info #146922)Function return type, default is TypeId::of::<()>
variadic: bool๐ฌThis is a nightly-only experimental API. (
type_info #146922)Vardiadic function, e.g. extern โCโ fn add(n: usize, mut args: โฆ);
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for FnPtr
impl RefUnwindSafe for FnPtr
impl Send for FnPtr
impl Sync for FnPtr
impl Unpin for FnPtr
impl UnsafeUnpin for FnPtr
impl UnwindSafe for FnPtr
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