pub struct LuaMap(/* private fields */);
Implementations§
source§impl LuaMap
impl LuaMap
pub fn new() -> LuaMap
pub fn is_empty(&self) -> bool
pub fn insert<K, V>(&mut self, k: K, v: V)where K: Into<String>, V: Into<AnyLuaValue>,
pub fn insert_str<K, V>(&mut self, k: K, v: V)where K: Into<String>, V: Into<String>,
pub fn insert_num<K>(&mut self, k: K, v: f64)where K: Into<String>,
pub fn insert_serde<K, S>(&mut self, k: K, v: S) -> Result<(), Error>where K: Into<String>, S: Serialize,
Trait Implementations§
source§impl From<HashMap<AnyHashableLuaValue, AnyLuaValue, RandomState>> for LuaMap
impl From<HashMap<AnyHashableLuaValue, AnyLuaValue, RandomState>> for LuaMap
source§fn from(x: HashMap<AnyHashableLuaValue, AnyLuaValue, RandomState>) -> LuaMap
fn from(x: HashMap<AnyHashableLuaValue, AnyLuaValue, RandomState>) -> LuaMap
Converts to this type from the input type.
source§impl From<LuaMap> for HashMap<AnyHashableLuaValue, AnyLuaValue, RandomState>
impl From<LuaMap> for HashMap<AnyHashableLuaValue, AnyLuaValue, RandomState>
source§fn from(map: LuaMap) -> HashMap<AnyHashableLuaValue, AnyLuaValue, RandomState>
fn from(map: LuaMap) -> HashMap<AnyHashableLuaValue, AnyLuaValue, RandomState>
Converts to this type from the input type.
source§impl From<Vec<(AnyLuaValue, AnyLuaValue), Global>> for LuaMap
impl From<Vec<(AnyLuaValue, AnyLuaValue), Global>> for LuaMap
source§fn from(x: Vec<(AnyLuaValue, AnyLuaValue), Global>) -> LuaMap
fn from(x: Vec<(AnyLuaValue, AnyLuaValue), Global>) -> LuaMap
Converts to this type from the input type.
source§impl IntoIterator for LuaMap
impl IntoIterator for LuaMap
§type Item = (AnyHashableLuaValue, AnyLuaValue)
type Item = (AnyHashableLuaValue, AnyLuaValue)
The type of the elements being iterated over.
§type IntoIter = IntoIter<AnyHashableLuaValue, AnyLuaValue>
type IntoIter = IntoIter<AnyHashableLuaValue, AnyLuaValue>
Which kind of iterator are we turning this into?
Auto Trait Implementations§
impl RefUnwindSafe for LuaMap
impl Send for LuaMap
impl Sync for LuaMap
impl Unpin for LuaMap
impl UnwindSafe for LuaMap
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more