pub struct GlobalVar {
pub name: String,
pub ty: Type,
pub storage: StorageClass,
pub init: Option<Expression>,
}
Expand description
Global variable definition
Fields§
§name: String
§ty: Type
§storage: StorageClass
§init: Option<Expression>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GlobalVar
impl<'de> Deserialize<'de> for GlobalVar
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
Auto Trait Implementations§
impl Freeze for GlobalVar
impl RefUnwindSafe for GlobalVar
impl Send for GlobalVar
impl Sync for GlobalVar
impl Unpin for GlobalVar
impl UnwindSafe for GlobalVar
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