pub trait PinnedHandle {
// Required method
fn ticket(&self) -> HostRootTicket;
}Expand description
v1.3 Phase SR — common trait for handle types that wrap a
HostRootTicket. Lets Lua::unpin accept LuaFunction /
LuaTable / LuaRoot uniformly.
Required Methods§
Sourcefn ticket(&self) -> HostRootTicket
fn ticket(&self) -> HostRootTicket
The ticket this handle wraps.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".