macro_rules! godot_wrap_method {
    (
        $type_name:ty,
        $is_deref_return:ident,
        fn $method_name:ident(
            &mut $self:ident
            $(, #[base] $base:ident : $base_ty:ty)?
            $(, $pname:ident : $pty:ty)*
            $(, #[opt] $opt_pname:ident : $opt_pty:ty)*
            $(,)?
        ) $(-> $retty:ty)?
    ) => { ... };
    (
        $type_name:ty,
        $is_deref_return:ident,
        fn $method_name:ident(
            & $self:ident
            $(, #[base] $base:ident : $base_ty:ty)?
            $(, $pname:ident : $pty:ty)*
            $(, #[opt] $opt_pname:ident : $opt_pty:ty)*
            $(,)?
        ) $(-> $retty:ty)?
    ) => { ... };
    (
        $type_name:ty,
        $is_deref_return:ident,
        fn $method_name:ident(
            mut $self:ident
            $(, #[base] $base:ident : $base_ty:ty)?
            $(, $pname:ident : $pty:ty)*
            $(, #[opt] $opt_pname:ident : $opt_pty:ty)*
            $(,)?
        ) $(-> $retty:ty)?
    ) => { ... };
    (
        $type_name:ty,
        $is_deref_return:ident,
        fn $method_name:ident(
            $self:ident
            $(, #[base] $base:ident : $base_ty:ty)?
            $(, $pname:ident : $pty:ty)*
            $(, #[opt] $opt_pname:ident : $opt_pty:ty)*
            $(,)?
        ) $(-> $retty:ty)?
    ) => { ... };
}
Expand description

Convenience macro to wrap an object’s method into a function pointer that can be passed to the engine when registering a class.