Enum mod_memoize::CacheValue
source · pub enum CacheValue {
Table(HashMap<MapKey, CacheValue>),
Json(Value),
Memoized(Memoized),
}
Variants§
Implementations§
source§impl CacheValue
impl CacheValue
Trait Implementations§
source§impl Clone for CacheValue
impl Clone for CacheValue
source§fn clone(&self) -> CacheValue
fn clone(&self) -> CacheValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'lua> FromLua<'lua> for CacheValue
impl<'lua> FromLua<'lua> for CacheValue
source§impl<'lua> IntoLua<'lua> for CacheValue
impl<'lua> IntoLua<'lua> for CacheValue
source§impl PartialEq for CacheValue
impl PartialEq for CacheValue
source§fn eq(&self, other: &CacheValue) -> bool
fn eq(&self, other: &CacheValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CacheValue
Auto Trait Implementations§
impl Freeze for CacheValue
impl !RefUnwindSafe for CacheValue
impl Send for CacheValue
impl Sync for CacheValue
impl Unpin for CacheValue
impl !UnwindSafe for CacheValue
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
§impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
§fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
Performs the conversion. Read more
fn from_lua_args( args: MultiValue<'lua>, i: usize, to: Option<&str>, lua: &'lua Lua, ) -> Result<T, Error>
unsafe fn from_stack_multi(nvals: i32, lua: &'lua Lua) -> Result<T, Error>
unsafe fn from_stack_args( nargs: i32, i: usize, to: Option<&str>, lua: &'lua Lua, ) -> Result<T, Error>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
impl<'lua, T> IntoLuaMulti<'lua> for Twhere
T: IntoLua<'lua>,
§fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
Performs the conversion.