Struct bones_scripting::lua::bindings::ecsref::SchemaLuaEcsRefMetatable
source · pub struct SchemaLuaEcsRefMetatable(pub fn(_: Context<'_>) -> Table<'_>);
Expand description
A type data that can be used to specify a custom metatable to use for the type when it is
used in an EcsRef
in the lua API.
Tuple Fields§
§0: fn(_: Context<'_>) -> Table<'_>
Trait Implementations§
source§impl HasSchema for SchemaLuaEcsRefMetatable
impl HasSchema for SchemaLuaEcsRefMetatable
§fn register_schema()
fn register_schema()
Register this schema with the global schema registry. Read more
§fn cast<T>(this: &Self) -> &Twhere
T: HasSchema,
fn cast<T>(this: &Self) -> &Twhere
T: HasSchema,
Cast a reference of this type to a reference of another type with the same memory layout. Read more
§fn try_cast<T>(this: &Self) -> Result<&T, SchemaMismatchError>where
T: HasSchema,
fn try_cast<T>(this: &Self) -> Result<&T, SchemaMismatchError>where
T: HasSchema,
Cast a reference of this type to a reference of another type with the same memory layout. Read more
§fn cast_mut<T>(this: &mut Self) -> &mut Twhere
T: HasSchema,
fn cast_mut<T>(this: &mut Self) -> &mut Twhere
T: HasSchema,
Cast a mutable reference of this type to a reference of another type with the same memory
layout. Read more
§fn try_cast_mut<T>(this: &mut Self) -> Result<&mut T, SchemaMismatchError>where
T: HasSchema,
fn try_cast_mut<T>(this: &mut Self) -> Result<&mut T, SchemaMismatchError>where
T: HasSchema,
Cast a mutable reference of this type to a reference of another type with the same memory
layout. Read more
§fn as_schema_ref(&self) -> SchemaRef<'_>where
Self: Sized,
fn as_schema_ref(&self) -> SchemaRef<'_>where
Self: Sized,
Converts a reference of
T
to a [SchemaRef
]§fn as_schema_mut(&mut self) -> SchemaRefMut<'_>where
Self: Sized,
fn as_schema_mut(&mut self) -> SchemaRefMut<'_>where
Self: Sized,
Converts a reference of
T
to a [SchemaRefMut
]Auto Trait Implementations§
impl Freeze for SchemaLuaEcsRefMetatable
impl RefUnwindSafe for SchemaLuaEcsRefMetatable
impl Send for SchemaLuaEcsRefMetatable
impl Sync for SchemaLuaEcsRefMetatable
impl Unpin for SchemaLuaEcsRefMetatable
impl UnwindSafe for SchemaLuaEcsRefMetatable
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