Struct ext_php_rs::class::ConstructorMeta
source · 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.
Auto Trait Implementations§
impl<T> RefUnwindSafe for ConstructorMeta<T>
impl<T> Send for ConstructorMeta<T>
impl<T> Sync for ConstructorMeta<T>
impl<T> Unpin for ConstructorMeta<T>
impl<T> UnwindSafe for ConstructorMeta<T>
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