pub struct ComptimeForExpr {
pub variable: String,
pub iterable: Box<Expr>,
pub body: Vec<Statement>,
}Expand description
Compile-time for loop: comptime for field in target.fields { ... }
Unrolled at compile time — each iteration generates code with the loop variable
substituted for the concrete field descriptor.
Fields§
§variable: StringLoop variable name (e.g., “field”)
iterable: Box<Expr>The iterable expression (e.g., target.fields)
body: Vec<Statement>Body statements to unroll for each iteration
Trait Implementations§
Source§impl Clone for ComptimeForExpr
impl Clone for ComptimeForExpr
Source§fn clone(&self) -> ComptimeForExpr
fn clone(&self) -> ComptimeForExpr
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 ComptimeForExpr
impl Debug for ComptimeForExpr
Source§impl<'de> Deserialize<'de> for ComptimeForExpr
impl<'de> Deserialize<'de> for ComptimeForExpr
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 ComptimeForExpr
impl PartialEq for ComptimeForExpr
Source§impl Serialize for ComptimeForExpr
impl Serialize for ComptimeForExpr
impl StructuralPartialEq for ComptimeForExpr
Auto Trait Implementations§
impl Freeze for ComptimeForExpr
impl RefUnwindSafe for ComptimeForExpr
impl Send for ComptimeForExpr
impl Sync for ComptimeForExpr
impl Unpin for ComptimeForExpr
impl UnsafeUnpin for ComptimeForExpr
impl UnwindSafe for ComptimeForExpr
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