pub struct Handles {
pub key: fn(Key) -> Value,
pub id: fn(u64) -> Value,
}Expand description
How a binding spells the handles inside a readback (a node key, a
resource id) when a shape crosses as a Value. A JS number cannot
hold a 64-bit handle and a Lua integer can, so Node writes sixteen hex
digits (Handles::HEX) and Lua the integer itself (Handles::INT).
Fields§
§key: fn(Key) -> Value§id: fn(u64) -> ValueImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Handles
impl RefUnwindSafe for Handles
impl Send for Handles
impl Sync for Handles
impl Unpin for Handles
impl UnsafeUnpin for Handles
impl UnwindSafe for Handles
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