#[repr(C)]pub struct StatementGenericFor<'ast> {
pub base: StatementHeader<'ast>,
pub names: &'ast [&'ast Local<'ast>],
pub values: &'ast [Expression<'ast>],
pub body: Block<'ast>,
pub has_in: bool,
pub in_location: Location,
pub has_do: bool,
pub do_location: Location,
}Fields§
§base: StatementHeader<'ast>§names: &'ast [&'ast Local<'ast>]§values: &'ast [Expression<'ast>]§body: Block<'ast>§has_in: bool§in_location: Location§has_do: bool§do_location: LocationImplementations§
Source§impl<'ast> StatementGenericFor<'ast>
impl<'ast> StatementGenericFor<'ast>
pub fn new( location: Location, has_semicolon: bool, names: &'ast [&'ast Local<'ast>], values: &'ast [Expression<'ast>], body: Block<'ast>, has_in: bool, in_location: Location, has_do: bool, do_location: Location, ) -> Self
pub fn location(&self) -> Location
pub fn has_semicolon(&self) -> bool
Trait Implementations§
Source§impl Debug for StatementGenericFor<'_>
impl Debug for StatementGenericFor<'_>
Auto Trait Implementations§
impl<'ast> !Send for StatementGenericFor<'ast>
impl<'ast> !Sync for StatementGenericFor<'ast>
impl<'ast> Freeze for StatementGenericFor<'ast>
impl<'ast> RefUnwindSafe for StatementGenericFor<'ast>
impl<'ast> Unpin for StatementGenericFor<'ast>
impl<'ast> UnsafeUnpin for StatementGenericFor<'ast>
impl<'ast> UnwindSafe for StatementGenericFor<'ast>
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