pub enum Y<'lua> {
Nil,
Boolean(bool),
LightUserData(LightUserData),
Integer(Integer),
Number(Number),
String(String<'lua>),
Table(Table<'lua>),
Function(Function<'lua>),
Thread(Thread<'lua>),
UserData(AnyUserData<'lua>),
Error(Error),
}
Variants§
Nil
Boolean(bool)
LightUserData(LightUserData)
Integer(Integer)
Number(Number)
String(String<'lua>)
Table(Table<'lua>)
Function(Function<'lua>)
Thread(Thread<'lua>)
UserData(AnyUserData<'lua>)
Error(Error)
Trait Implementations§
source§impl<'lua> FromIterator<Y<'lua>> for MultiValue<'lua>
impl<'lua> FromIterator<Y<'lua>> for MultiValue<'lua>
source§impl<'lua> ToTypename for Y<'lua>
impl<'lua> ToTypename for Y<'lua>
source§fn to_typename() -> Type
fn to_typename() -> Type
generates the type representation
source§fn to_old_type_parts() -> Cow<'static, [NamePart]>
fn to_old_type_parts() -> Cow<'static, [NamePart]>
👎Deprecated
Used to get the old representation.
Should basically never be used or implemented manually
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
Auto Trait Implementations§
impl<'lua> !RefUnwindSafe for Y<'lua>
impl<'lua> !Send for Y<'lua>
impl<'lua> !Sync for Y<'lua>
impl<'lua> Unpin for Y<'lua>
impl<'lua> !UnwindSafe for Y<'lua>
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<'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: Context<'lua>
) -> Result<T, Error>
fn from_lua_multi( values: MultiValue<'lua>, lua: Context<'lua> ) -> Result<T, Error>
Performs the conversion. Read more
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
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: Context<'lua>) -> Result<MultiValue<'lua>, Error>
fn to_lua_multi(self, lua: Context<'lua>) -> Result<MultiValue<'lua>, Error>
Performs the conversion.
source§impl<T> TypeName for Twhere
T: ToTypename,
impl<T> TypeName for Twhere
T: ToTypename,
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_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
source§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
source§fn collect_children(_: &mut Vec<TealType>)
fn collect_children(_: &mut Vec<TealType>)
Creates/updates a list of every child type this type has
This is used to properly label methods/functions as being generic.