pub struct ForNode<'pr> { /* private fields */ }Expand description
Represents the use of the for keyword.
for i in a end
^^^^^^^^^^^^^^Implementationsยง
Sourceยงimpl<'pr> ForNode<'pr>
impl<'pr> ForNode<'pr>
Sourcepub fn collection(&self) -> Node<'pr>
pub fn collection(&self) -> Node<'pr>
Returns the collection param
Sourcepub fn statements(&self) -> Option<StatementsNode<'pr>>
pub fn statements(&self) -> Option<StatementsNode<'pr>>
Returns the statements param
Sourcepub fn for_keyword_loc(&self) -> Location<'pr>
pub fn for_keyword_loc(&self) -> Location<'pr>
Returns the for_keyword_loc param
Sourcepub fn in_keyword_loc(&self) -> Location<'pr>
pub fn in_keyword_loc(&self) -> Location<'pr>
Returns the in_keyword_loc param
Sourcepub fn do_keyword_loc(&self) -> Option<Location<'pr>>
pub fn do_keyword_loc(&self) -> Option<Location<'pr>>
Returns the do_keyword_loc param
Sourcepub fn end_keyword_loc(&self) -> Location<'pr>
pub fn end_keyword_loc(&self) -> Location<'pr>
Returns the end_keyword_loc param
Trait Implementationsยง
Auto Trait Implementationsยง
impl<'pr> !Send for ForNode<'pr>
impl<'pr> !Sync for ForNode<'pr>
impl<'pr> !UnwindSafe for ForNode<'pr>
impl<'pr> Freeze for ForNode<'pr>
impl<'pr> RefUnwindSafe for ForNode<'pr>
impl<'pr> Unpin for ForNode<'pr>
impl<'pr> UnsafeUnpin for ForNode<'pr>
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