Trait tealr::TypeName [−][src]
pub trait TypeName { fn get_type_name(dir: Direction) -> Cow<'static, str>; fn is_external() -> bool { ... } }
Expand description
A trait to collect the required type information like the name of the type.
Required methods
fn get_type_name(dir: Direction) -> Cow<'static, str>
[src]
fn get_type_name(dir: Direction) -> Cow<'static, str>
[src]returns the type name as how it should show up in the generated .d.tl
file
Provided methods
fn is_external() -> bool
[src]
fn is_external() -> bool
[src]This method tells the generator that the type will always be available
This is pretty much only the case for native lua/teal types like number
DO NOT overwrite it unless you are ABSOLUTELY sure you need to. The default is correct for 99.999% of the cases.
Implementations on Foreign Types
Implementors
impl<'lua, Params, Response> TypeName for tealr::mlu::TypedFunction<'lua, Params, Response> where
Params: ToLuaMulti<'lua> + TealMultiValue,
Response: FromLuaMulti<'lua> + TealMultiValue,
[src]
impl<'lua, Params, Response> TypeName for tealr::mlu::TypedFunction<'lua, Params, Response> where
Params: ToLuaMulti<'lua> + TealMultiValue,
Response: FromLuaMulti<'lua> + TealMultiValue,
[src]fn get_type_name(_: Direction) -> Cow<'static, str>
[src]
impl<'lua, Params, Response> TypeName for tealr::rlu::TypedFunction<'lua, Params, Response> where
Params: ToLuaMulti<'lua> + TealMultiValue,
Response: FromLuaMulti<'lua> + TealMultiValue,
[src]
impl<'lua, Params, Response> TypeName for tealr::rlu::TypedFunction<'lua, Params, Response> where
Params: ToLuaMulti<'lua> + TealMultiValue,
Response: FromLuaMulti<'lua> + TealMultiValue,
[src]