pub struct UserDataProxy<T: StaticUserdata> { /* private fields */ }Expand description
A newtype storing proxy userdata created via mlua::Lua::create_proxy.
the TypeName for this struct is implemented as the TypeName for T concatenated with “Class”.
For example, if your type is called “MyType”, the proxy would have “MyTypeClass” for a TypeName.
the documentation for this proxy receives only static methods, i.e. those created via:
TealDataMethods::add_functionTealDataMethods::add_meta_functionTealDataMethods::add_meta_function_mutTealDataMethods::add_function_mutTealDataMethods::add_async_functionTealDataFields::add_field_function_getTealDataFields::add_field_function_setTealDataFields::add_meta_field_with
The type documentation is overriden as well.
Implementations§
Source§impl<T: StaticUserdata> UserDataProxy<T>
impl<T: StaticUserdata> UserDataProxy<T>
Trait Implementations§
Source§impl<T: StaticUserdata> IntoLua for UserDataProxy<T>
impl<T: StaticUserdata> IntoLua for UserDataProxy<T>
Source§impl<T: StaticUserdata + ToTypename> ToTypename for UserDataProxy<T>
impl<T: StaticUserdata + ToTypename> ToTypename for UserDataProxy<T>
Source§fn to_typename() -> Type
fn to_typename() -> Type
generates the type representation
Source§fn to_function_param() -> Vec<FunctionParam>
fn to_function_param() -> Vec<FunctionParam>
generates the type representation when used as a parameter
By default will assume no name was given Read more
Source§impl<T: StaticUserdata + TypeBody + ToTypename> TypeBody for UserDataProxy<T>
impl<T: StaticUserdata + TypeBody + ToTypename> TypeBody for UserDataProxy<T>
Source§fn get_type_body() -> TypeGenerator
fn get_type_body() -> TypeGenerator
Fills in the TypeGenerator so a .d.tl file can be constructed.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for UserDataProxy<T>
impl<T> !Send for UserDataProxy<T>
impl<T> !Sync for UserDataProxy<T>
impl<T> !UnwindSafe for UserDataProxy<T>
impl<T> Freeze for UserDataProxy<T>where
PhantomData<T>: Freeze,
impl<T> Unpin for UserDataProxy<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for UserDataProxy<T>where
PhantomData<T>: UnsafeUnpin,
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
Source§impl<T> IntoLuaMulti for Twhere
T: IntoLua,
impl<T> IntoLuaMulti for Twhere
T: IntoLua,
Source§fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
Performs the conversion.
unsafe fn push_into_stack_multi(self, lua: &RawLua) -> Result<i32, Error>
impl<T> MaybeSend for T
impl<T> MaybeSend for T
Source§impl<A> TealMultiValue for Awhere
A: ToTypename,
impl<A> TealMultiValue for Awhere
A: ToTypename,
Source§fn get_types_as_params() -> Vec<FunctionParam>
fn get_types_as_params() -> Vec<FunctionParam>
Gets the type representations as used for function parameters