pub struct FnPtr { /* private fields */ }๐ฌThis is a nightly-only experimental API. (
type_info #146922)Expand description
Function pointer, e.g. fn(u8),
Implementationsยง
Sourceยงimpl FnPtr
impl FnPtr
Sourcepub const fn splatted(&self) -> Option<u8>
๐ฌThis is a nightly-only experimental API. (type_info #146922)
pub const fn splatted(&self) -> Option<u8>
type_info #146922)Returns the splatted function argument index, or None if no argument is splatted.
e.g. in fn overload(a: u8, #[rustc_splat] b: (f32, usize)) the index is 1,
and it can be called as overload(a, 1.0, 2).
Sourcepub const fn is_variadic(&self) -> bool
๐ฌThis is a nightly-only experimental API. (type_info #146922)
pub const fn is_variadic(&self) -> bool
type_info #146922)Whether this function is variadic, e.g. extern โCโ fn add(n: usize, mut args: โฆ);
Sourcepub const fn is_unsafe(&self) -> bool
๐ฌThis is a nightly-only experimental API. (type_info #146922)
pub const fn is_unsafe(&self) -> bool
type_info #146922)whether this refers to an unsafe function.
Sourcepub const fn abi(&self) -> Abi
๐ฌThis is a nightly-only experimental API. (type_info #146922)
pub const fn abi(&self) -> Abi
type_info #146922)Returns the application binary interface. For example extern โCโ.
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