pub struct Function { /* private fields */ }Implementations§
Source§impl Function
impl Function
Sourcepub const unsafe fn new_unchecked(
fname: *const c_char,
handler: Handler,
arg_info: *const c_void,
num_args: u32,
) -> Self
pub const unsafe fn new_unchecked( fname: *const c_char, handler: Handler, arg_info: *const c_void, num_args: u32, ) -> Self
Creates a native PHP function entry from raw Zend metadata.
§Safety
fname must point to a process-lifetime nul-terminated string.
arg_info must point to process-lifetime Zend-compatible arginfo.
handler must obey PHP’s zif_handler calling convention.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnsafeUnpin for Function
impl UnwindSafe for Function
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