MCPcopy Create free account
hub / github.com/StrataWM/strata / update_from_lua

Method update_from_lua

strata-core/src/lib.rs:28–31  ·  view source on GitHub ↗
(&mut self, value: Value<'lua>, lua: &'lua Lua)

Source from the content-addressed store, hash-verified

26
27impl<'lua, T: FromLua<'lua>> UpdateFromLua<'lua> for Vec<T> {
28 fn update_from_lua(&mut self, value: Value<'lua>, lua: &'lua Lua) -> Result<()> {
29 *self = FromLua::from_lua(value, lua)?;
30 Ok(())
31 }
32}
33
34impl<'lua, T: FromLua<'lua>> UpdateFromLua<'lua> for Option<T> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected