Enum ClassHeritage
pub enum ClassHeritage {
Node,
Resource,
DynResource {
implementors: Vec<ClassId>,
},
Other,
}Expand description
Which tree in the Godot hierarchy a class belongs to; determines how it appears in property hints.
Used inside GodotShape::Class.
Variants§
Node
A class inheriting from Node (uses NODE_TYPE hint for #[export]).
Resource
A class inheriting from Resource (uses RESOURCE_TYPE hint for #[export]).
DynResource
A DynGd<T, D> where T inherits Resource. Stores the concrete implementor ClassIds from the #[godot_dyn] registry.
Fields
Other
Any other class that doesn’t inherit from Node or Resource. No special hint for #[export].
Implementations§
§impl ClassHeritage
impl ClassHeritage
pub fn export_property_hint(&self) -> PropertyHint
pub fn export_property_hint(&self) -> PropertyHint
Returns the PropertyHint for #[export] context.
Trait Implementations§
§impl Clone for ClassHeritage
impl Clone for ClassHeritage
§fn clone(&self) -> ClassHeritage
fn clone(&self) -> ClassHeritage
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 moreAuto Trait Implementations§
impl Freeze for ClassHeritage
impl RefUnwindSafe for ClassHeritage
impl Send for ClassHeritage
impl Sync for ClassHeritage
impl Unpin for ClassHeritage
impl UnsafeUnpin for ClassHeritage
impl UnwindSafe for ClassHeritage
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