Struct bevy_mod_scripting::rhai::RhaiEvent
source · pub struct RhaiEvent<A>where
A: FuncArgs + Clone + 'static,{
pub hook_name: String,
pub args: A,
pub recipients: Recipients,
}
Expand description
A Rhai Hook. The result of creating this event will be a call to the lua script with the hook_name and the given arguments
Fields§
§hook_name: String
§args: A
§recipients: Recipients
Trait Implementations§
source§impl<A> ScriptEvent for RhaiEvent<A>where
A: FuncArgs + Clone + Send + Sync + 'static,
impl<A> ScriptEvent for RhaiEvent<A>where A: FuncArgs + Clone + Send + Sync + 'static,
source§fn recipients(&self) -> &Recipients
fn recipients(&self) -> &Recipients
Retrieves the recipient scripts for this event
Auto Trait Implementations§
impl<A> RefUnwindSafe for RhaiEvent<A>where A: RefUnwindSafe,
impl<A> Send for RhaiEvent<A>where A: Send,
impl<A> Sync for RhaiEvent<A>where A: Sync,
impl<A> Unpin for RhaiEvent<A>where A: Unpin,
impl<A> UnwindSafe for RhaiEvent<A>where A: UnwindSafe,
Blanket Implementations§
§impl<T, U> AsBindGroupShaderType<U> for Twhere
U: ShaderType,
&'a T: for<'a> Into<U>,
impl<T, U> AsBindGroupShaderType<U> for Twhere U: ShaderType, &'a T: for<'a> Into<U>,
§fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<Image>) -> U
Return the
T
[ShaderType
] for self
. When used in [AsBindGroup
]
derives, it is safe to assume that all images in self
exist.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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.