Struct godot::register::property::PropertyHintInfo
pub struct PropertyHintInfo {
pub hint: PropertyHint,
pub hint_string: GString,
}
Expand description
Info needed by Godot, for how to export a type to the editor.
Fields§
§hint: PropertyHint
§hint_string: GString
Implementations§
§impl PropertyHintInfo
impl PropertyHintInfo
pub fn with_hint_none(type_name: impl Into<GString>) -> PropertyHintInfo
pub fn with_hint_none(type_name: impl Into<GString>) -> PropertyHintInfo
Create a new PropertyHintInfo
with a property hint of PROPERTY_HINT_NONE
.
Starting with Godot version 4.3, the hint string will always be the empty string. Before that, the hint string is set to
be type_name
.
Trait Implementations§
§impl Clone for PropertyHintInfo
impl Clone for PropertyHintInfo
§fn clone(&self) -> PropertyHintInfo
fn clone(&self) -> PropertyHintInfo
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 more§impl Debug for PropertyHintInfo
impl Debug for PropertyHintInfo
§impl PartialEq for PropertyHintInfo
impl PartialEq for PropertyHintInfo
§fn eq(&self, other: &PropertyHintInfo) -> bool
fn eq(&self, other: &PropertyHintInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PropertyHintInfo
impl StructuralPartialEq for PropertyHintInfo
Auto Trait Implementations§
impl Freeze for PropertyHintInfo
impl RefUnwindSafe for PropertyHintInfo
impl !Send for PropertyHintInfo
impl !Sync for PropertyHintInfo
impl Unpin for PropertyHintInfo
impl UnwindSafe for PropertyHintInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)