pub trait InParamTuple: ParamTuple {
// Required methods
unsafe fn from_varcall_args(
args_ptr: *const GDExtensionConstVariantPtr,
call_ctx: &CallContext<'_>,
) -> Result<Self, CallError>;
unsafe fn from_ptrcall_args(
args_ptr: *const GDExtensionConstTypePtr,
call_type: PtrcallType,
call_ctx: &CallContext<'_>,
) -> Self;
fn from_variant_array(array: &[&Variant]) -> Self;
}
Expand description
Represents a parameter list that is received from some external location (usually Godot).
As an example, this would be used for user-defined functions that will be called from Godot, however this is not used when calling a Godot function from Rust code.
Required Methods§
Sourceunsafe fn from_varcall_args(
args_ptr: *const GDExtensionConstVariantPtr,
call_ctx: &CallContext<'_>,
) -> Result<Self, CallError>
unsafe fn from_varcall_args( args_ptr: *const GDExtensionConstVariantPtr, call_ctx: &CallContext<'_>, ) -> Result<Self, CallError>
Sourceunsafe fn from_ptrcall_args(
args_ptr: *const GDExtensionConstTypePtr,
call_type: PtrcallType,
call_ctx: &CallContext<'_>,
) -> Self
unsafe fn from_ptrcall_args( args_ptr: *const GDExtensionConstTypePtr, call_type: PtrcallType, call_ctx: &CallContext<'_>, ) -> Self
Sourcefn from_variant_array(array: &[&Variant]) -> Self
fn from_variant_array(array: &[&Variant]) -> Self
Converts array
to Self
by calling from_variant
on each argument.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.