Struct ext_php_rs::php::function::FunctionBuilder [−][src]
pub struct FunctionBuilder<'a> { /* fields omitted */ }
Expand description
Builds a function to be exported as a PHP function.
Implementations
Creates a new function builder, used to build functions to be exported to PHP.
Parameters
name
- The name of the function.handler
- The handler to be called when the function is invoked from PHP.
Creates a constructor builder, used to build the constructor for classes.
Parameters
handler
- The handler to be called when the function is invoked from PHP.
Sets the rest of the given arguments as not required.
Sets the return value of the function.
Parameters
type_
- The return type of the function.as_ref
- Whether the fucntion returns a reference.allow_null
- Whether the function return value is nullable.
Builds the function converting it into a Zend function entry.
Returns a result containing the function entry if successful.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for FunctionBuilder<'a>
impl<'a> !Send for FunctionBuilder<'a>
impl<'a> !Sync for FunctionBuilder<'a>
impl<'a> Unpin for FunctionBuilder<'a>
impl<'a> UnwindSafe for FunctionBuilder<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more