Struct godot::builtin::meta::CallContext
pub struct CallContext<'a> {
pub class_name: &'a str,
pub function_name: &'a str,
}
Fields§
§class_name: &'a str
§function_name: &'a str
Implementations§
§impl<'a> CallContext<'a>
impl<'a> CallContext<'a>
pub const fn func(
class_name: &'a str,
function_name: &'a str
) -> CallContext<'a>
pub const fn func( class_name: &'a str, function_name: &'a str ) -> CallContext<'a>
Call from Godot into a user-defined #[func] function.
pub const fn outbound(
class_name: &'a str,
function_name: &'a str
) -> CallContext<'a>
pub const fn outbound( class_name: &'a str, function_name: &'a str ) -> CallContext<'a>
Outbound call from Rust into the engine, class/builtin APIs.
pub fn gd<T>(function_name: &'a str) -> CallContext<'a>where
T: GodotClass,
pub fn gd<T>(function_name: &'a str) -> CallContext<'a>where
T: GodotClass,
Outbound call from Rust into the engine, via Gd methods.
Trait Implementations§
§impl<'a> Clone for CallContext<'a>
impl<'a> Clone for CallContext<'a>
§fn clone(&self) -> CallContext<'a>
fn clone(&self) -> CallContext<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for CallContext<'a>
impl<'a> RefUnwindSafe for CallContext<'a>
impl<'a> Send for CallContext<'a>
impl<'a> Sync for CallContext<'a>
impl<'a> Unpin for CallContext<'a>
impl<'a> UnwindSafe for CallContext<'a>
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