pub struct PersistentString {
pub key: GString,
pub value: GString,
pub base: Base<Node>,
/* private fields */
}Fields§
§key: GString§value: GString§base: Base<Node>Implementations§
Source§impl PersistentString
impl PersistentString
pub fn get_key(&self) -> <GString as GodotConvert>::Via
pub fn set_key(&mut self, key: <GString as GodotConvert>::Via)
pub fn get_value(&self) -> <GString as GodotConvert>::Via
pub fn set_value(&mut self, value: <GString as GodotConvert>::Via)
Trait Implementations§
Source§impl Bounds for PersistentString
impl Bounds for PersistentString
Source§impl Debug for PersistentString
impl Debug for PersistentString
Source§impl GodotClass for PersistentString
impl GodotClass for PersistentString
Source§fn class_name() -> ClassName
fn class_name() -> ClassName
The name of the class, under which it is registered in Godot. Read more
Source§const INIT_LEVEL: InitLevel = <Self::Base as GodotClass>::INIT_LEVEL
const INIT_LEVEL: InitLevel = <Self::Base as GodotClass>::INIT_LEVEL
Initialization level, during which this class should be initialized with Godot. Read more
Source§impl INode for PersistentString
impl INode for PersistentString
Source§fn init(base: Base<Node>) -> Self
fn init(base: Base<Node>) -> Self
Godot constructor, accepting an injected
base object. Read morefn enter_tree(&mut self)
fn exit_tree(&mut self)
Source§fn on_notification(&mut self, what: NodeNotification)
fn on_notification(&mut self, what: NodeNotification)
Called when the object receives a Godot notification. Read more
Source§fn get_property(&self, property: StringName) -> Option<Variant>
fn get_property(&self, property: StringName) -> Option<Variant>
Source§fn set_property(&mut self, property: StringName, value: Variant) -> bool
fn set_property(&mut self, property: StringName, value: Variant) -> bool
Source§fn get_property_list(&mut self) -> Vec<PropertyInfo>
fn get_property_list(&mut self) -> Vec<PropertyInfo>
Called whenever Godot
get_property_list() is called, the returned vector here is
appended to the existing list of properties. Read moreSource§fn validate_property(&self, property: &mut PropertyInfo)
fn validate_property(&self, property: &mut PropertyInfo)
Called whenever Godot retrieves value of property. Allows to customize existing properties.
Every property info goes through this method, except properties added with
get_property_list(). Read moreSource§fn property_get_revert(&self, property: StringName) -> Option<Variant>
fn property_get_revert(&self, property: StringName) -> Option<Variant>
Called by Godot to tell if a property has a custom revert or not. Read more
fn process(&mut self, delta: f64)
fn physics_process(&mut self, delta: f64)
fn ready(&mut self)
fn get_configuration_warnings(&self) -> PackedStringArray
fn input(&mut self, event: Gd<InputEvent>)
fn shortcut_input(&mut self, event: Gd<InputEvent>)
fn unhandled_input(&mut self, event: Gd<InputEvent>)
fn unhandled_key_input(&mut self, event: Gd<InputEvent>)
Source§impl WithBaseField for PersistentString
impl WithBaseField for PersistentString
impl GodotDefault for PersistentString
impl ImplementsGodotExports for PersistentString
impl ImplementsGodotVirtual for PersistentString
impl Inherits<Node> for PersistentString
impl Inherits<Object> for PersistentString
impl You_forgot_the_attribute__godot_api for PersistentString
Auto Trait Implementations§
impl !Freeze for PersistentString
impl !RefUnwindSafe for PersistentString
impl !Send for PersistentString
impl !Sync for PersistentString
impl Unpin for PersistentString
impl !UnwindSafe for PersistentString
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