pub struct Variable {
pub module: Option<String>,
pub name: String,
pub value: Value,
pub local: bool,
pub persistent: bool,
}Expand description
How a variable looks (for inspection).
Fields§
§module: Option<String>For a module variable, the name of the module that declared it (None for local variables).
name: StringThe name (without the module name).
value: ValueThe value.
local: boolWhether it is a local variable (not a module variable).
persistent: boolWhether it is a persistent var (a variable that goes into persistent data, not saves).
Trait Implementations§
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Forget for Variable
impl Freeze for Variable
impl Move for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnsafeUnpin for Variable
impl UnwindSafe for Variable
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