pub struct GlobalVarDef {
pub id: DefinitionId,
pub name: NameId,
pub value_type: ValueType,
pub default_value: Value,
pub mutable: bool,
}Expand description
A global variable definition.
Fields§
§id: DefinitionId§name: NameId§value_type: ValueType§default_value: Value§mutable: boolTrait Implementations§
Source§impl Clone for GlobalVarDef
impl Clone for GlobalVarDef
Source§fn clone(&self) -> GlobalVarDef
fn clone(&self) -> GlobalVarDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlobalVarDef
impl Debug for GlobalVarDef
Source§impl PartialEq for GlobalVarDef
impl PartialEq for GlobalVarDef
Source§fn eq(&self, other: &GlobalVarDef) -> bool
fn eq(&self, other: &GlobalVarDef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GlobalVarDef
Auto Trait Implementations§
impl Freeze for GlobalVarDef
impl RefUnwindSafe for GlobalVarDef
impl Send for GlobalVarDef
impl Sync for GlobalVarDef
impl Unpin for GlobalVarDef
impl UnsafeUnpin for GlobalVarDef
impl UnwindSafe for GlobalVarDef
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