pub struct Global {
pub name: String,
pub id: usize,
}Expand description
A value referenced by a global name.
name is the Lua expression that reaches it, such as print or io.stdin.
id gives identity so two references to the same global stay shared.
Equality is by id. Two globals with the same identity are equal, matching
Lua reference semantics. The name is not compared.
Fields§
§name: StringThe global name to emit.
id: usizeIdentity of this global object.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Global
impl RefUnwindSafe for Global
impl Send for Global
impl Sync for Global
impl Unpin for Global
impl UnsafeUnpin for Global
impl UnwindSafe for Global
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