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<S>(type_name: S) -> PropertyHintInfo
pub fn with_hint_none<S>(type_name: S) -> PropertyHintInfo
Create a new PropertyHintInfo
with a property hint of
PROPERTY_HINT_NONE
.
Usually Godot expects this to be combined with a hint_string
containing the name of the type.
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