@@ -209,8 +209,7 @@ impl<T: GodotClass> Gd<T> {
209
209
/// ⚠️ Returns the last known, possibly invalid instance ID of this object.
210
210
///
211
211
/// This function does not check that the returned instance ID points to a valid instance!
212
- /// Unless performance is a problem, use [`instance_id()`][Self::instance_id] or
213
- /// [`instance_id_or_none()`][Self::instance_id_or_none] instead.
212
+ /// Unless performance is a problem, use [`instance_id()`][Self::instance_id] instead.
214
213
pub fn instance_id_unchecked ( & self ) -> InstanceId {
215
214
// SAFETY:
216
215
// A `Gd` can only be created from a non-null `RawGd`. Meaning `raw.instance_id_unchecked()` will
@@ -459,6 +458,10 @@ impl<T: GodotClass> GodotType for Gd<T> {
459
458
Some ( Self { raw } )
460
459
}
461
460
}
461
+
462
+ fn class_name ( ) -> crate :: builtin:: meta:: ClassName {
463
+ T :: class_name ( )
464
+ }
462
465
}
463
466
464
467
impl < T : GodotClass > Clone for Gd < T > {
@@ -540,13 +543,13 @@ impl<T: GodotClass> Eq for Gd<T> {}
540
543
541
544
impl < T : GodotClass > Display for Gd < T > {
542
545
fn fmt ( & self , f : & mut Formatter < ' _ > ) -> FmtResult {
543
- engine:: display_string ( & self , f)
546
+ engine:: display_string ( self , f)
544
547
}
545
548
}
546
549
547
550
impl < T : GodotClass > Debug for Gd < T > {
548
551
fn fmt ( & self , f : & mut Formatter < ' _ > ) -> FmtResult {
549
- engine:: debug_string ( & self , f, "Gd" )
552
+ engine:: debug_string ( self , f, "Gd" )
550
553
}
551
554
}
552
555
0 commit comments