pub struct GaiaGlobal {
pub name: String,
pub var_type: GaiaType,
pub initial_value: Option<GaiaConstant>,
pub is_constant: bool,
}Expand description
Gaia 全局变量
Fields§
§name: String变量名
var_type: GaiaType变量类型
initial_value: Option<GaiaConstant>初始值(可选)
is_constant: bool是否为常量
Trait Implementations§
Source§impl Clone for GaiaGlobal
impl Clone for GaiaGlobal
Source§fn clone(&self) -> GaiaGlobal
fn clone(&self) -> GaiaGlobal
Returns a duplicate of the value. Read more
1.0.0 · 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 GaiaGlobal
impl Debug for GaiaGlobal
Source§impl<'de> Deserialize<'de> for GaiaGlobal
impl<'de> Deserialize<'de> for GaiaGlobal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GaiaGlobal
impl PartialEq for GaiaGlobal
Source§impl Serialize for GaiaGlobal
impl Serialize for GaiaGlobal
impl StructuralPartialEq for GaiaGlobal
Auto Trait Implementations§
impl Freeze for GaiaGlobal
impl RefUnwindSafe for GaiaGlobal
impl Send for GaiaGlobal
impl Sync for GaiaGlobal
impl Unpin for GaiaGlobal
impl UnwindSafe for GaiaGlobal
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