Struct gdnative_physics::common::GodotString[]

pub struct GodotString(_);

Godot's reference-counted string type.

Methods

impl GodotString

Returns the internal ffi representation of the string and consumes the rust object without running the destructor.

This should be only used when certain that the receiving side is responsible for running the destructor for the object, otherwise it is leaked.

Returns a copy of the internal ffi representation of the string.

The string remains owned by the rust wrapper and the receiver of the ffi representation should not run its destructor.

Trait Implementations

impl ToVariant for GodotString

impl Debug for GodotString

Formats the value using the given formatter. Read more

impl<S> From<S> for GodotString where
    S: AsRef<str>, 

Performs the conversion.

impl<'l> From<&'l GodotString> for Variant

Performs the conversion.

impl Default for GodotString

Returns the "default value" for a type. Read more

impl Eq for GodotString

impl Drop for GodotString

Executes the destructor for this type. Read more

impl PartialEq<GodotString> for GodotString

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for GodotString

impl Sync for GodotString