Enum AstVariableInitializer
pub enum AstVariableInitializer {
Scalar(AstExpression),
Aggregate {
node_id: AstNodeId,
init: Vec<AstVariableInitializer>,
},
}Expand description
A variable initializer.
Variants§
Implementations§
§impl AstVariableInitializer
impl AstVariableInitializer
pub fn is_aggregate(&self) -> bool
pub fn is_aggregate(&self) -> bool
Is the initializer an aggregate initializer?
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AstVariableInitializer
impl RefUnwindSafe for AstVariableInitializer
impl Send for AstVariableInitializer
impl Sync for AstVariableInitializer
impl Unpin for AstVariableInitializer
impl UnwindSafe for AstVariableInitializer
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