pub enum PluginItem {
Struct(Struct),
InherentImpl(InherentImpl),
ITraitImpl(ITraitImpl),
DynTraitImpl(DynTraitImpl),
}
Expand description
Represents the data part of a ClassPlugin
instance.
Each enumerator represents a different item in Rust code, which is processed by an independent proc macro (for example,
#[derive(GodotClass)]
on structs, or #[godot_api]
on impl blocks).
Variants§
Struct(Struct)
Class definition itself, must always be available – created by #[derive(GodotClass)]
.
InherentImpl(InherentImpl)
Collected from #[godot_api] impl MyClass
.
ITraitImpl(ITraitImpl)
Collected from #[godot_api] impl I... for MyClass
.
DynTraitImpl(DynTraitImpl)
Collected from #[godot_dyn]
macro invocations.
Trait Implementations§
Source§impl Clone for PluginItem
impl Clone for PluginItem
Source§fn clone(&self) -> PluginItem
fn clone(&self) -> PluginItem
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 PluginItem
impl RefUnwindSafe for PluginItem
impl Send for PluginItem
impl Sync for PluginItem
impl Unpin for PluginItem
impl UnwindSafe for PluginItem
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