pub enum GlobalInitializer {
Scalar {
value: InitializerValue,
span: Range<usize>,
},
Aggregate {
values: Vec<GlobalInitializer>,
span: Range<usize>,
},
}Expand description
Structured representation of a global variable initialiser.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for GlobalInitializer
impl Clone for GlobalInitializer
Source§fn clone(&self) -> GlobalInitializer
fn clone(&self) -> GlobalInitializer
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 GlobalInitializer
impl Debug for GlobalInitializer
Source§impl PartialEq for GlobalInitializer
impl PartialEq for GlobalInitializer
Source§impl PtxParser for GlobalInitializer
impl PtxParser for GlobalInitializer
Source§fn parse(stream: &mut PtxTokenStream<'_>) -> Result<Self, PtxParseError>
fn parse(stream: &mut PtxTokenStream<'_>) -> Result<Self, PtxParseError>
Parse an instance of
Self from the token stream.Source§impl PtxUnparser for GlobalInitializer
impl PtxUnparser for GlobalInitializer
impl Eq for GlobalInitializer
impl StructuralPartialEq for GlobalInitializer
Auto Trait Implementations§
impl Freeze for GlobalInitializer
impl RefUnwindSafe for GlobalInitializer
impl Send for GlobalInitializer
impl Sync for GlobalInitializer
impl Unpin for GlobalInitializer
impl UnwindSafe for GlobalInitializer
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