Struct ext_php_rs::class::ConstructorMeta [−][src]
pub struct ConstructorMeta<T> {
pub constructor: fn(_: &mut ExecuteData) -> ConstructorResult<T>,
pub build_fn: fn(_: FunctionBuilder<'_>) -> FunctionBuilder<'_>,
}
Expand description
Stores metadata about a classes Rust constructor, including the function pointer and the arguments of the function.
Fields
constructor: fn(_: &mut ExecuteData) -> ConstructorResult<T>
Constructor function.
build_fn: fn(_: FunctionBuilder<'_>) -> FunctionBuilder<'_>
Function called to build the constructor function. Usually adds arguments.