pub struct GlobalConstants { /* private fields */ }
Expand description
core singleton class GlobalConstants
(unsafe).
§Official documentation
See the documentation of this class in the Godot engine’s official documentation.
§Feature flag
This type is behind the gdnative crate’s common
feature flag.
Implementations§
Source§impl GlobalConstants
impl GlobalConstants
pub fn godot_singleton() -> Self
Sourcepub fn cast<T: GodotObject>(&self) -> Option<T>
pub fn cast<T: GodotObject>(&self) -> Option<T>
Generic dynamic cast.
Trait Implementations§
Source§impl Clone for GlobalConstants
impl Clone for GlobalConstants
Source§fn clone(&self) -> GlobalConstants
fn clone(&self) -> GlobalConstants
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GlobalConstants
impl Debug for GlobalConstants
Source§impl GodotObject for GlobalConstants
impl GodotObject for GlobalConstants
fn class_name() -> &'static str
Source§impl ToVariant for GlobalConstants
impl ToVariant for GlobalConstants
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Self>
impl Copy for GlobalConstants
Auto Trait Implementations§
impl Freeze for GlobalConstants
impl RefUnwindSafe for GlobalConstants
impl !Send for GlobalConstants
impl !Sync for GlobalConstants
impl Unpin for GlobalConstants
impl UnwindSafe for GlobalConstants
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more