Skip to content

Commit 173cb22

Browse files
committed
Hide internal symbols from public API (*ParamTuple methods, Signature)
1 parent 3667d22 commit 173cb22

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

godot-core/src/meta/param_tuple.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ pub trait InParamTuple: ParamTuple {
4747
///
4848
/// - `args_ptr` must be a pointer to an array of length [`Self::LEN`](ParamTuple::LEN)
4949
/// - Each element of `args_ptr` must be reborrowable as a `&Variant` with a lifetime that lasts for the duration of the call.
50+
#[doc(hidden)] // Hidden since v0.3.2.
5051
unsafe fn from_varcall_args(
5152
args_ptr: *const sys::GDExtensionConstVariantPtr,
5253
call_ctx: &CallContext,
@@ -58,6 +59,7 @@ pub trait InParamTuple: ParamTuple {
5859
///
5960
/// - `args_ptr` must be a pointer to a valid array of length [`Self::LEN`](ParamTuple::LEN)
6061
/// - each element of `args_ptr` must be of the same type as each element of `Self`
62+
#[doc(hidden)] // Hidden since v0.3.2.
6163
unsafe fn from_ptrcall_args(
6264
args_ptr: *const sys::GDExtensionConstTypePtr,
6365
call_type: sys::PtrcallType,
@@ -79,11 +81,13 @@ pub trait OutParamTuple: ParamTuple {
7981
F: FnOnce(&[Variant]) -> R;
8082

8183
/// Call `f` on the tuple `self` by first converting `self` to an array of [`Variant`] pointers.
84+
#[doc(hidden)] // Hidden since v0.3.2.
8285
fn with_variant_pointers<F, R>(self, f: F) -> R
8386
where
8487
F: FnOnce(&[sys::GDExtensionConstVariantPtr]) -> R;
8588

8689
/// Call `f` on the tuple `self` by first converting `self` to an array of Godot type pointers.
90+
#[doc(hidden)] // Hidden since v0.3.2.
8791
fn with_type_pointers<F, R>(self, f: F) -> R
8892
where
8993
F: FnOnce(&[sys::GDExtensionConstTypePtr]) -> R;

godot-core/src/meta/signature.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ use godot_ffi::{self as sys, GodotFfi};
2121

2222
pub(super) type CallResult<R> = Result<R, CallError>;
2323

24-
//mod impls;
25-
2624
/// A full signature for a function.
2725
///
2826
/// For in-calls (that is, calls from the Godot engine to Rust code) `Params` will implement [`InParamTuple`] and `Ret`
2927
/// will implement [`ToGodot`].
3028
///
3129
/// For out-calls (that is calls from Rust code to the Godot engine) `Params` will implement [`OutParamTuple`] and `Ret`
3230
/// will implement [`FromGodot`].
31+
#[doc(hidden)] // Hidden since v0.3.2.
3332
pub struct Signature<Params, Ret> {
3433
_p: PhantomData<Params>,
3534
_r: PhantomData<Ret>,

0 commit comments

Comments
 (0)