Enum bevy_mod_scripting::api::lua::bevy::ColorUnionLuaColor
source · pub enum ColorUnionLuaColor {
LuaColor(LuaColor),
}Variants§
Trait Implementations§
source§impl<'lua> FromLua<'lua> for ColorUnionLuaColor
impl<'lua> FromLua<'lua> for ColorUnionLuaColor
source§impl<'lua> ToLua<'lua> for ColorUnionLuaColor
impl<'lua> ToLua<'lua> for ColorUnionLuaColor
source§impl TypeName for ColorUnionLuaColor
impl TypeName for ColorUnionLuaColor
source§fn get_type_parts() -> Cow<'static, [NamePart]>
fn get_type_parts() -> Cow<'static, [NamePart]>
returns the type name as how it should show up in the generated
.d.tl filesource§fn get_type_kind() -> KindOfType
fn get_type_kind() -> KindOfType
This method tells the generator if this type is builtin to teal/lua, if it comes from somewhere else or if it stands in as a generic Read more
§fn get_type_parts_as_global() -> Cow<'static, [NamePart]>
fn get_type_parts_as_global() -> Cow<'static, [NamePart]>
Generates the typename when used to describe a global value. Read more
§fn collect_children(_: &mut Vec<TealType, Global>)
fn collect_children(_: &mut Vec<TealType, Global>)
Creates/updates a list of every child type this type has
This is used to properly label methods/functions as being generic.
Auto Trait Implementations§
impl !RefUnwindSafe for ColorUnionLuaColor
impl Send for ColorUnionLuaColor
impl Sync for ColorUnionLuaColor
impl Unpin for ColorUnionLuaColor
impl !UnwindSafe for ColorUnionLuaColor
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.source§impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
impl<'lua, T> FromLuaMulti<'lua> for Twhere T: FromLua<'lua>,
source§fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
Performs the conversion. Read more
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>
§impl<A> TealMultiValue for Awhere
A: TypeName,
impl<A> TealMultiValue for Awhere A: TypeName,
source§impl<'lua, T> ToLuaMulti<'lua> for Twhere
T: ToLua<'lua>,
impl<'lua, T> ToLuaMulti<'lua> for Twhere T: ToLua<'lua>,
source§fn to_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
fn to_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
Performs the conversion.