pub struct ForBinding {
pub prefix: String,
pub local_name: String,
pub in_expr: AstNodeId,
pub slot: Option<u32>,
pub span: SourceSpan,
}Expand description
Variable binding in a for/quantified expression.
Fields§
§prefix: StringVariable name prefix.
local_name: StringVariable local name.
in_expr: AstNodeIdExpression producing the sequence to iterate.
slot: Option<u32>Resolved variable slot (set during binding phase).
span: SourceSpanSource location.
Implementations§
Source§impl ForBinding
impl ForBinding
Trait Implementations§
Source§impl Clone for ForBinding
impl Clone for ForBinding
Source§fn clone(&self) -> ForBinding
fn clone(&self) -> ForBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ForBinding
impl RefUnwindSafe for ForBinding
impl Send for ForBinding
impl Sync for ForBinding
impl Unpin for ForBinding
impl UnsafeUnpin for ForBinding
impl UnwindSafe for ForBinding
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