Trait nvim_utils::prelude::ToLua
source · pub trait ToLua<'lua> {
// Required method
fn to_lua(self, lua: &'lua Lua) -> Result<Value<'lua>, Error>;
}
Expand description
Trait for types convertible to Value
.
Required Methods§
Implementations on Foreign Types§
source§impl<'lua, K, V, S> ToLua<'lua> for HashMap<K, V, S>where
K: Eq + Hash + ToLua<'lua>,
V: ToLua<'lua>,
S: BuildHasher,
impl<'lua, K, V, S> ToLua<'lua> for HashMap<K, V, S>where K: Eq + Hash + ToLua<'lua>, V: ToLua<'lua>, S: BuildHasher,
source§impl<'lua, T, S> ToLua<'lua> for HashSet<T, S>where
T: Eq + Hash + ToLua<'lua>,
S: BuildHasher,
impl<'lua, T, S> ToLua<'lua> for HashSet<T, S>where T: Eq + Hash + ToLua<'lua>, S: BuildHasher,
source§impl<'lua, K, V> ToLua<'lua> for BTreeMap<K, V, Global>where
K: Ord + ToLua<'lua>,
V: ToLua<'lua>,
impl<'lua, K, V> ToLua<'lua> for BTreeMap<K, V, Global>where K: Ord + ToLua<'lua>, V: ToLua<'lua>,
Implementors§
impl<'a> ToLua<'a> for ModuleBuilder<'a>
Available on crate feature
builder
only.impl<'a> ToLua<'a> for EvalStatuslineOpt
Available on crate features
vim
and unstable
only.