pub struct DynamicScriptFunction {
pub info: Arc<FunctionInfo>,
/* private fields */
}Expand description
A dynamic script function.
Fields§
§info: Arc<FunctionInfo>The meta information about the function
Implementations§
Source§impl DynamicScriptFunction
impl DynamicScriptFunction
Sourcepub fn call<I>(
&self,
args: I,
context: FunctionCallContext,
) -> Result<ScriptValue, InteropError>where
I: IntoIterator<Item = ScriptValue>,
pub fn call<I>(
&self,
args: I,
context: FunctionCallContext,
) -> Result<ScriptValue, InteropError>where
I: IntoIterator<Item = ScriptValue>,
Call the function with the given arguments and caller context.
In the case of errors wraps the error in a InteropError::function_interop_error to provide more context.
Sourcepub fn identity(&self) -> usize
pub fn identity(&self) -> usize
An id shared by the clones of this function, valid while one of them is alive.
Languages can use it to cache their own wrappers of registered functions.
Sourcepub fn bind_to_type(
&self,
type_info: &'static TypeInfo,
) -> DynamicScriptFunction
pub fn bind_to_type( &self, type_info: &'static TypeInfo, ) -> DynamicScriptFunction
Binds a function shared between all types, i.e. one registered on StaticTypeRef, to the given type.
The returned function is called without the type argument, which is filled in on each call.
Its signature is that of FunctionInfo::bind_to_type.
Sourcepub fn curry(&self, first: ScriptValue) -> DynamicScriptFunction
pub fn curry(&self, first: ScriptValue) -> DynamicScriptFunction
Fixes the first argument of the function, i.e. a receiver or a type.
The returned function is called with the remaining arguments. Its info is unchanged.
Sourcepub fn with_info(self, info: FunctionInfo) -> DynamicScriptFunction
pub fn with_info(self, info: FunctionInfo) -> DynamicScriptFunction
Set the meta information about the function
Trait Implementations§
Source§impl ArgMeta for DynamicScriptFunction
impl ArgMeta for DynamicScriptFunction
Source§fn default_value() -> Option<ScriptValue>
fn default_value() -> Option<ScriptValue>
Source§impl Clone for DynamicScriptFunction
impl Clone for DynamicScriptFunction
Source§fn clone(&self) -> DynamicScriptFunction
fn clone(&self) -> DynamicScriptFunction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DynamicScriptFunction
impl Debug for DynamicScriptFunction
Source§impl DebugWithTypeInfo for DynamicScriptFunction
impl DebugWithTypeInfo for DynamicScriptFunction
Source§fn to_string_with_type_info(
&self,
f: &mut Formatter<'_>,
type_info_provider: Option<&WorldAccessGuard<'_>>,
) -> Result<(), Error>
fn to_string_with_type_info( &self, f: &mut Formatter<'_>, type_info_provider: Option<&WorldAccessGuard<'_>>, ) -> Result<(), Error>
Source§impl DisplayWithTypeInfo for DynamicScriptFunction
impl DisplayWithTypeInfo for DynamicScriptFunction
Source§fn display_with_type_info(
&self,
f: &mut Formatter<'_>,
type_info_provider: Option<&WorldAccessGuard<'_>>,
) -> Result<(), Error>
fn display_with_type_info( &self, f: &mut Formatter<'_>, type_info_provider: Option<&WorldAccessGuard<'_>>, ) -> Result<(), Error>
Source§impl<F> From<F> for DynamicScriptFunction
impl<F> From<F> for DynamicScriptFunction
Source§fn from(fn_: F) -> DynamicScriptFunction
fn from(fn_: F) -> DynamicScriptFunction
Source§impl FromReflect for DynamicScriptFunction
impl FromReflect for DynamicScriptFunction
Source§fn from_reflect(
reflect: &(dyn PartialReflect + 'static),
) -> Option<DynamicScriptFunction>
fn from_reflect( reflect: &(dyn PartialReflect + 'static), ) -> Option<DynamicScriptFunction>
Self from a reflected value.Source§fn take_from_reflect(
reflect: Box<dyn PartialReflect>,
) -> Result<Self, Box<dyn PartialReflect>>
fn take_from_reflect( reflect: Box<dyn PartialReflect>, ) -> Result<Self, Box<dyn PartialReflect>>
Self using,
constructing the value using from_reflect if that fails. Read moreSource§impl FromScript for DynamicScriptFunction
impl FromScript for DynamicScriptFunction
Source§type This<'w> = DynamicScriptFunction
type This<'w> = DynamicScriptFunction
Source§fn from_script<'s>(
value: ScriptValue,
_: &'s CallScope<'_>,
) -> Result<<DynamicScriptFunction as FromScript>::This<'s>, InteropError>where
DynamicScriptFunction: Sized,
fn from_script<'s>(
value: ScriptValue,
_: &'s CallScope<'_>,
) -> Result<<DynamicScriptFunction as FromScript>::This<'s>, InteropError>where
DynamicScriptFunction: Sized,
Source§impl GetTypeDependencies for DynamicScriptFunction
impl GetTypeDependencies for DynamicScriptFunction
Source§type Underlying = DynamicScriptFunction
type Underlying = DynamicScriptFunction
Self
However some types might be facades for other types, in which case this will be the underlying typeSource§fn register_type_dependencies(registry: &mut TypeRegistry)
fn register_type_dependencies(registry: &mut TypeRegistry)
TypeRegistry.Source§impl GetTypeRegistration for DynamicScriptFunction
impl GetTypeRegistration for DynamicScriptFunction
Source§fn get_type_registration() -> TypeRegistration
fn get_type_registration() -> TypeRegistration
TypeRegistration for this type.Source§fn register_type_dependencies(_registry: &mut TypeRegistry)
fn register_type_dependencies(_registry: &mut TypeRegistry)
Source§impl IntoScript for DynamicScriptFunction
impl IntoScript for DynamicScriptFunction
Source§fn into_script(
self,
_world: WorldAccessGuard<'_>,
) -> Result<ScriptValue, InteropError>
fn into_script( self, _world: WorldAccessGuard<'_>, ) -> Result<ScriptValue, InteropError>
ScriptValue.Source§fn into_script_inline_error(self, world: WorldAccessGuard<'_>) -> ScriptValuewhere
Self: Sized,
fn into_script_inline_error(self, world: WorldAccessGuard<'_>) -> ScriptValuewhere
Self: Sized,
ScriptValue, returning an error as a ScriptValue if an error occurs.Source§impl PartialEq for DynamicScriptFunction
Clones are equal, they share the same function
impl PartialEq for DynamicScriptFunction
Clones are equal, they share the same function
Source§impl PartialReflect for DynamicScriptFunction
impl PartialReflect for DynamicScriptFunction
Source§fn get_represented_type_info(&self) -> Option<&'static TypeInfo>
fn get_represented_type_info(&self) -> Option<&'static TypeInfo>
Source§fn to_dynamic(&self) -> Result<Box<dyn PartialReflect>, ReflectCloneError>
fn to_dynamic(&self) -> Result<Box<dyn PartialReflect>, ReflectCloneError>
Source§fn try_apply(
&mut self,
value: &(dyn PartialReflect + 'static),
) -> Result<(), ApplyError>
fn try_apply( &mut self, value: &(dyn PartialReflect + 'static), ) -> Result<(), ApplyError>
Source§fn reflect_kind(&self) -> ReflectKind
fn reflect_kind(&self) -> ReflectKind
Source§fn reflect_ref(&self) -> ReflectRef<'_>
fn reflect_ref(&self) -> ReflectRef<'_>
Source§fn reflect_mut(&mut self) -> ReflectMut<'_>
fn reflect_mut(&mut self) -> ReflectMut<'_>
Source§fn reflect_owned(self: Box<DynamicScriptFunction>) -> ReflectOwned
fn reflect_owned(self: Box<DynamicScriptFunction>) -> ReflectOwned
Source§fn try_into_reflect(
self: Box<DynamicScriptFunction>,
) -> Result<Box<dyn Reflect>, Box<dyn PartialReflect>>
fn try_into_reflect( self: Box<DynamicScriptFunction>, ) -> Result<Box<dyn Reflect>, Box<dyn PartialReflect>>
Source§fn try_as_reflect(&self) -> Option<&(dyn Reflect + 'static)>
fn try_as_reflect(&self) -> Option<&(dyn Reflect + 'static)>
Source§fn try_as_reflect_mut(&mut self) -> Option<&mut (dyn Reflect + 'static)>
fn try_as_reflect_mut(&mut self) -> Option<&mut (dyn Reflect + 'static)>
Source§fn into_partial_reflect(
self: Box<DynamicScriptFunction>,
) -> Box<dyn PartialReflect>
fn into_partial_reflect( self: Box<DynamicScriptFunction>, ) -> Box<dyn PartialReflect>
Source§fn as_partial_reflect(&self) -> &(dyn PartialReflect + 'static)
fn as_partial_reflect(&self) -> &(dyn PartialReflect + 'static)
Source§fn as_partial_reflect_mut(&mut self) -> &mut (dyn PartialReflect + 'static)
fn as_partial_reflect_mut(&mut self) -> &mut (dyn PartialReflect + 'static)
Source§fn apply(&mut self, value: &(dyn PartialReflect + 'static))
fn apply(&mut self, value: &(dyn PartialReflect + 'static))
Source§fn reflect_clone(&self) -> Result<Box<dyn Reflect>, ReflectCloneError>
fn reflect_clone(&self) -> Result<Box<dyn Reflect>, ReflectCloneError>
Self using reflection. Read moreSource§fn reflect_clone_and_take<T>(&self) -> Result<T, ReflectCloneError>
fn reflect_clone_and_take<T>(&self) -> Result<T, ReflectCloneError>
PartialReflect, combines reflect_clone and
take in a useful fashion, automatically constructing an appropriate
ReflectCloneError if the downcast fails.Source§fn reflect_hash(&self) -> Option<u64>
fn reflect_hash(&self) -> Option<u64>
Source§fn reflect_partial_eq(
&self,
_value: &(dyn PartialReflect + 'static),
) -> Option<bool>
fn reflect_partial_eq( &self, _value: &(dyn PartialReflect + 'static), ) -> Option<bool>
Source§fn reflect_partial_cmp(
&self,
_value: &(dyn PartialReflect + 'static),
) -> Option<Ordering>
fn reflect_partial_cmp( &self, _value: &(dyn PartialReflect + 'static), ) -> Option<Ordering>
Source§fn debug(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn debug(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Source§fn is_dynamic(&self) -> bool
fn is_dynamic(&self) -> bool
Source§impl Reflect for DynamicScriptFunction
impl Reflect for DynamicScriptFunction
Source§fn into_any(self: Box<DynamicScriptFunction>) -> Box<dyn Any>
fn into_any(self: Box<DynamicScriptFunction>) -> Box<dyn Any>
Box<dyn Any>. Read moreSource§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut dyn Any. Read moreSource§fn into_reflect(self: Box<DynamicScriptFunction>) -> Box<dyn Reflect>
fn into_reflect(self: Box<DynamicScriptFunction>) -> Box<dyn Reflect>
Source§fn as_reflect(&self) -> &(dyn Reflect + 'static)
fn as_reflect(&self) -> &(dyn Reflect + 'static)
Source§fn as_reflect_mut(&mut self) -> &mut (dyn Reflect + 'static)
fn as_reflect_mut(&mut self) -> &mut (dyn Reflect + 'static)
Source§impl TypePath for DynamicScriptFunction
impl TypePath for DynamicScriptFunction
Source§fn type_path() -> &'static str
fn type_path() -> &'static str
Source§fn short_type_path() -> &'static str
fn short_type_path() -> &'static str
Source§fn type_ident() -> Option<&'static str>
fn type_ident() -> Option<&'static str>
Source§fn crate_name() -> Option<&'static str>
fn crate_name() -> Option<&'static str>
Source§impl Typed for DynamicScriptFunction
impl Typed for DynamicScriptFunction
Source§impl TypedThrough for DynamicScriptFunction
impl TypedThrough for DynamicScriptFunction
Source§fn through_type_info() -> ThroughTypeInfo
fn through_type_info() -> ThroughTypeInfo
ThroughTypeInfo for the type.Auto Trait Implementations§
impl !RefUnwindSafe for DynamicScriptFunction
impl !UnwindSafe for DynamicScriptFunction
impl Forget for DynamicScriptFunction
impl Freeze for DynamicScriptFunction
impl Move for DynamicScriptFunction
impl Send for DynamicScriptFunction
impl Sync for DynamicScriptFunction
impl Unpin for DynamicScriptFunction
impl UnsafeUnpin for DynamicScriptFunction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
impl<T> Context for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DynamicTypePath for Twhere
T: TypePath,
impl<T> DynamicTypePath for Twhere
T: TypePath,
Source§fn reflect_type_path(&self) -> &str
fn reflect_type_path(&self) -> &str
TypePath::type_path.Source§fn reflect_short_type_path(&self) -> &str
fn reflect_short_type_path(&self) -> &str
Source§fn reflect_type_ident(&self) -> Option<&str>
fn reflect_type_ident(&self) -> Option<&str>
TypePath::type_ident.Source§fn reflect_crate_name(&self) -> Option<&str>
fn reflect_crate_name(&self) -> Option<&str>
TypePath::crate_name.Source§fn reflect_module_path(&self) -> Option<&str>
fn reflect_module_path(&self) -> Option<&str>
Source§impl<T> DynamicTyped for Twhere
T: Typed,
impl<T> DynamicTyped for Twhere
T: Typed,
Source§fn reflect_type_info(&self) -> &'static TypeInfo
fn reflect_type_info(&self) -> &'static TypeInfo
Typed::type_info.Source§impl<T> GetPath for T
impl<T> GetPath for T
Source§fn reflect_path<'p>(
&self,
path: impl ReflectPath<'p>,
) -> Result<&(dyn PartialReflect + 'static), ReflectPathError<'p>>
fn reflect_path<'p>( &self, path: impl ReflectPath<'p>, ) -> Result<&(dyn PartialReflect + 'static), ReflectPathError<'p>>
path. Read moreSource§fn reflect_path_mut<'p>(
&mut self,
path: impl ReflectPath<'p>,
) -> Result<&mut (dyn PartialReflect + 'static), ReflectPathError<'p>>
fn reflect_path_mut<'p>( &mut self, path: impl ReflectPath<'p>, ) -> Result<&mut (dyn PartialReflect + 'static), ReflectPathError<'p>>
path. Read moreSource§fn path<'p, T>(
&self,
path: impl ReflectPath<'p>,
) -> Result<&T, ReflectPathError<'p>>where
T: Reflect,
fn path<'p, T>(
&self,
path: impl ReflectPath<'p>,
) -> Result<&T, ReflectPathError<'p>>where
T: Reflect,
path. Read moreSource§fn path_mut<'p, T>(
&mut self,
path: impl ReflectPath<'p>,
) -> Result<&mut T, ReflectPathError<'p>>where
T: Reflect,
fn path_mut<'p, T>(
&mut self,
path: impl ReflectPath<'p>,
) -> Result<&mut T, ReflectPathError<'p>>where
T: Reflect,
path. Read moreSource§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
impl<T> MaybeSend for Twhere
T: Send,
impl<T> MaybeSync for Twhere
T: Sync,
Source§impl<T> PartialReflectExt for Twhere
T: PartialReflect + ?Sized,
impl<T> PartialReflectExt for Twhere
T: PartialReflect + ?Sized,
Source§fn from_reflect_or_clone(
reflect: &(dyn PartialReflect + 'static),
world: WorldAccessGuard<'_>,
) -> Result<Box<dyn PartialReflect>, InteropError>
fn from_reflect_or_clone( reflect: &(dyn PartialReflect + 'static), world: WorldAccessGuard<'_>, ) -> Result<Box<dyn PartialReflect>, InteropError>
Try creating an owned partial reflect from a reference. Will try using ReflectFromReflect first, and if that fails, will clone the value using [PartialReflect::clone_value].
Source§fn is_type(&self, crate_name: Option<&str>, type_ident: &str) -> bool
fn is_type(&self, crate_name: Option<&str>, type_ident: &str) -> bool
Source§fn expect_type(
&self,
crate_name: Option<&str>,
type_ident: &str,
) -> Result<(), InteropError>
fn expect_type( &self, crate_name: Option<&str>, type_ident: &str, ) -> Result<(), InteropError>
PartialReflectExt::is_type but returns an appropriate error if the type is not the expected one.Source§fn as_option(
&self,
) -> Result<Option<&(dyn PartialReflect + 'static)>, InteropError>
fn as_option( &self, ) -> Result<Option<&(dyn PartialReflect + 'static)>, InteropError>
Source§fn as_option_mut(
&mut self,
) -> Result<Option<&mut (dyn PartialReflect + 'static)>, InteropError>
fn as_option_mut( &mut self, ) -> Result<Option<&mut (dyn PartialReflect + 'static)>, InteropError>
PartialReflectExt::as_option but for mutable references.Source§fn as_list(
&self,
) -> Result<impl Iterator<Item = &(dyn PartialReflect + 'static)>, InteropError>
fn as_list( &self, ) -> Result<impl Iterator<Item = &(dyn PartialReflect + 'static)>, InteropError>
Source§fn set_as_list<F>(
&mut self,
other: Box<dyn PartialReflect>,
apply: F,
) -> Result<(), InteropError>where
F: Fn(&mut (dyn PartialReflect + 'static), &(dyn PartialReflect + 'static)) -> Result<(), InteropError>,
fn set_as_list<F>(
&mut self,
other: Box<dyn PartialReflect>,
apply: F,
) -> Result<(), InteropError>where
F: Fn(&mut (dyn PartialReflect + 'static), &(dyn PartialReflect + 'static)) -> Result<(), InteropError>,
Source§fn as_usize(&self) -> Result<usize, InteropError>
fn as_usize(&self) -> Result<usize, InteropError>
Source§fn try_insert_boxed(
&mut self,
key: Box<dyn PartialReflect>,
value: Box<dyn PartialReflect>,
) -> Result<(), InteropError>
fn try_insert_boxed( &mut self, key: Box<dyn PartialReflect>, value: Box<dyn PartialReflect>, ) -> Result<(), InteropError>
Source§fn try_push_boxed(
&mut self,
value: Box<dyn PartialReflect>,
) -> Result<(), InteropError>
fn try_push_boxed( &mut self, value: Box<dyn PartialReflect>, ) -> Result<(), InteropError>
end of the container.
For lists, this is the length of the list.
For sets, this will simply insert the value into the set.
For maps, there is no natural end, so the push will error outSource§fn convert_to_0_indexed_key(&mut self)
fn convert_to_0_indexed_key(&mut self)
Source§fn try_clear(&mut self) -> Result<(), InteropError>
fn try_clear(&mut self) -> Result<(), InteropError>
Source§fn try_map_get(
&self,
key: &(dyn PartialReflect + 'static),
) -> Result<Option<&(dyn PartialReflect + 'static)>, InteropError>
fn try_map_get( &self, key: &(dyn PartialReflect + 'static), ) -> Result<Option<&(dyn PartialReflect + 'static)>, InteropError>
Source§fn try_pop_boxed(&mut self) -> Result<Box<dyn PartialReflect>, InteropError>
fn try_pop_boxed(&mut self) -> Result<Box<dyn PartialReflect>, InteropError>
Source§fn try_remove_boxed(
&mut self,
key: Box<dyn PartialReflect>,
) -> Result<Option<Box<dyn PartialReflect>>, InteropError>
fn try_remove_boxed( &mut self, key: Box<dyn PartialReflect>, ) -> Result<Option<Box<dyn PartialReflect>>, InteropError>
Source§fn element_type_id(&self) -> Option<TypeId>
fn element_type_id(&self) -> Option<TypeId>
Source§fn key_type_id(&self) -> Option<TypeId>
fn key_type_id(&self) -> Option<TypeId>
Source§fn from_reflect(
reflect: &(dyn PartialReflect + 'static),
world: WorldAccessGuard<'_>,
) -> Result<Box<dyn Reflect>, InteropError>
fn from_reflect( reflect: &(dyn PartialReflect + 'static), world: WorldAccessGuard<'_>, ) -> Result<Box<dyn Reflect>, InteropError>
Source§fn allocate(
boxed: Box<dyn Reflect>,
_world: WorldAccessGuard<'_>,
) -> ReflectReference
fn allocate( boxed: Box<dyn Reflect>, _world: WorldAccessGuard<'_>, ) -> ReflectReference
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Reflectable for T
impl<T> ScriptArgument for T
impl<T> ScriptReturn for Twhere
T: IntoScript + GetTypeDependencies,
impl<T> Settings for T
Source§impl<T> Template for T
impl<T> Template for T
Source§fn build_template(
&self,
_context: &mut TemplateContext<'_, '_>,
) -> Result<<T as Template>::Output, BevyError>
fn build_template( &self, _context: &mut TemplateContext<'_, '_>, ) -> Result<<T as Template>::Output, BevyError>
entity context to produce a Template::Output.Source§fn clone_template(&self) -> T
fn clone_template(&self) -> T
Clone.Source§impl<T> TypeData for T
impl<T> TypeData for T
Source§fn clone_type_data(&self) -> Box<dyn TypeData>
fn clone_type_data(&self) -> Box<dyn TypeData>
self.