Trait TypeAnnotation

Source
pub trait TypeAnnotation {
    // Required method
    fn lua_type() -> Cow<'static, str>;
}

Required Methods§

Source

fn lua_type() -> Cow<'static, str>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TypeAnnotation for &str

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl TypeAnnotation for &CStr

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl TypeAnnotation for Cow<'_, str>

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl TypeAnnotation for bool

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl TypeAnnotation for f32

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl TypeAnnotation for f64

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl TypeAnnotation for i8

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl TypeAnnotation for i16

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl TypeAnnotation for i32

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl TypeAnnotation for i64

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl TypeAnnotation for str

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl TypeAnnotation for u8

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl TypeAnnotation for u16

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl TypeAnnotation for u32

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl TypeAnnotation for CString

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl TypeAnnotation for String

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl<K: TypeAnnotation, V: TypeAnnotation> TypeAnnotation for BTreeMap<K, V>

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl<K: TypeAnnotation, V: TypeAnnotation> TypeAnnotation for HashMap<K, V>

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl<T: TypeAnnotation + Clone> TypeAnnotation for Cow<'_, T>

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl<T: TypeAnnotation> TypeAnnotation for &[T]

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl<T: TypeAnnotation> TypeAnnotation for Option<T>

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl<T: TypeAnnotation> TypeAnnotation for [T]

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl<T: TypeAnnotation> TypeAnnotation for Box<T>

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl<T: TypeAnnotation> TypeAnnotation for BTreeSet<T>

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl<T: TypeAnnotation> TypeAnnotation for Rc<T>

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl<T: TypeAnnotation> TypeAnnotation for Arc<T>

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl<T: TypeAnnotation> TypeAnnotation for Vec<T>

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl<T: TypeAnnotation> TypeAnnotation for HashSet<T>

Source§

fn lua_type() -> Cow<'static, str>

Source§

impl<T: TypeAnnotation, const N: usize> TypeAnnotation for [T; N]

Source§

fn lua_type() -> Cow<'static, str>

Implementors§