Struct 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.
Property hints provide extra metadata about the property, such as:
- Range constraints for numeric values.
- Enum value lists.
- File/directory paths.
- Resource types.
- Array element types.
Fields§
§hint: PropertyHint§hint_string: GStringImplementations§
§impl PropertyHintInfo
impl PropertyHintInfo
pub fn none() -> PropertyHintInfo
pub fn none() -> PropertyHintInfo
Create a new PropertyHintInfo with a property hint of PROPERTY_HINT_NONE, and no hint string.
Trait Implementations§
§impl Clone for PropertyHintInfo
impl Clone for PropertyHintInfo
§fn clone(&self) -> PropertyHintInfo
fn clone(&self) -> PropertyHintInfo
Returns a duplicate 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
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 UnsafeUnpin 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