Publish `AnyUserData::take`
This commit is contained in:
parent
806f0bcef4
commit
ad70ba54a5
|
@ -819,7 +819,6 @@ impl<'lua> AnyUserData<'lua> {
|
|||
|
||||
/// Takes out the value of `UserData` and sets the special "destructed" metatable that prevents
|
||||
/// any further operations with this userdata.
|
||||
#[doc(hidden)]
|
||||
pub fn take<T: 'static + UserData>(&self) -> Result<T> {
|
||||
let lua = self.0.lua;
|
||||
unsafe {
|
||||
|
|
Loading…
Reference in New Issue