Struct lucia_lang::objects::UserData
source · pub struct UserData {
pub ptr: *mut u8,
pub metatable: Table,
pub drop_func: fn(_: &mut UserData),
}Expand description
The UserData.
Fields§
§ptr: *mut u8§metatable: Table§drop_func: fn(_: &mut UserData)Implementations§
Trait Implementations§
impl Eq for UserData
Auto Trait Implementations§
impl !RefUnwindSafe for UserData
impl !Send for UserData
impl !Sync for UserData
impl Unpin for UserData
impl !UnwindSafe for UserData
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.