Struct spirt::GlobalVarDefBody
source · pub struct GlobalVarDefBody {
pub initializer: Option<Const>,
}
Expand description
The body of a GlobalVar
definition.
Fields§
§initializer: Option<Const>
If Some
, the global variable will start out with the specified value.
Trait Implementations§
source§impl Clone for GlobalVarDefBody
impl Clone for GlobalVarDefBody
source§fn clone(&self) -> GlobalVarDefBody
fn clone(&self) -> GlobalVarDefBody
Returns a copy 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 InnerInPlaceTransform for GlobalVarDefBody
impl InnerInPlaceTransform for GlobalVarDefBody
fn inner_in_place_transform_with(&mut self, transformer: &mut impl Transformer)
source§impl InnerVisit for GlobalVarDefBody
impl InnerVisit for GlobalVarDefBody
fn inner_visit_with<'a>(&'a self, visitor: &mut impl Visitor<'a>)
Auto Trait Implementations§
impl RefUnwindSafe for GlobalVarDefBody
impl Send for GlobalVarDefBody
impl Sync for GlobalVarDefBody
impl Unpin for GlobalVarDefBody
impl UnwindSafe for GlobalVarDefBody
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