@@ -13,7 +13,7 @@ use std::fmt;
13
13
use std:: marker:: PhantomData ;
14
14
use sys:: { ffi_methods, interface_fn, GodotFfi } ;
15
15
16
- use super :: meta:: { FromGodot , GodotCompatible , GodotFfiVariant , GodotType , ToGodot } ;
16
+ use super :: meta:: { FromGodot , GodotConvert , GodotFfiVariant , GodotType , ToGodot } ;
17
17
18
18
/// Godot's `Array` type.
19
19
///
@@ -28,7 +28,7 @@ use super::meta::{FromGodot, GodotCompatible, GodotFfiVariant, GodotType, ToGodo
28
28
///
29
29
/// Godot also supports typed arrays, which are also just `Variant` arrays under the hood, but with
30
30
/// runtime checks that no values of the wrong type are put into the array. We represent this as
31
- /// `Array<T>`, where the type `T` implements `VariantMetadata`, `FromGodot` and `ToGodot `.
31
+ /// `Array<T>`, where the type `T` implements `GodotType `.
32
32
///
33
33
/// # Reference semantics
34
34
///
@@ -47,10 +47,10 @@ use super::meta::{FromGodot, GodotCompatible, GodotFfiVariant, GodotType, ToGodo
47
47
48
48
/// concurrent modification on other threads (e.g. created through GDScript).
49
49
50
- // `T` must be restricted to `VariantMetadata ` in the type, because `Drop` can only be implemented
50
+ // `T` must be restricted to `GodotType ` in the type, because `Drop` can only be implemented
51
51
// for `T: GodotType` because `drop()` requires `sys_mut()`, which is on the `GodotFfi`
52
52
// trait, whose `from_sys_init()` requires `Default`, which is only implemented for `T:
53
- // VariantMetadata `. Whew. This could be fixed by splitting up `GodotFfi` if desired.
53
+ // GodotType `. Whew. This could be fixed by splitting up `GodotFfi` if desired.
54
54
#[ repr( C ) ]
55
55
pub struct Array < T : GodotType > {
56
56
opaque : sys:: types:: OpaqueArray ,
@@ -621,7 +621,7 @@ unsafe impl<T: GodotType> GodotFfi for Array<T> {
621
621
}
622
622
}
623
623
624
- impl < T : GodotType > GodotCompatible for Array < T > {
624
+ impl < T : GodotType > GodotConvert for Array < T > {
625
625
type Via = Self ;
626
626
}
627
627
0 commit comments