#[repr(C)]pub struct pm_for_node {
pub base: pm_node_t,
pub index: *mut pm_node,
pub collection: *mut pm_node,
pub statements: *mut pm_statements_node,
pub for_keyword_loc: pm_location_t,
pub in_keyword_loc: pm_location_t,
pub do_keyword_loc: pm_location_t,
pub end_keyword_loc: pm_location_t,
}
Expand description
ForNode
Represents the use of the for
keyword.
for i in a end
^^^^^^^^^^^^^^
Type: ::PM_FOR_NODE
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
index: *mut pm_node
ForNode#index
The index expression for for
loops.
for i in a end
^
collection: *mut pm_node
ForNode#collection
The collection to iterate over.
for i in a end
^
statements: *mut pm_statements_node
ForNode#statements
Represents the body of statements to execute for each iteration of the loop.
for i in a
foo(i)
^^^^^^
end
for_keyword_loc: pm_location_t
ForNode#for_keyword_loc
The location of the for
keyword.
for i in a end
^^^
in_keyword_loc: pm_location_t
ForNode#in_keyword_loc
The location of the in
keyword.
for i in a end
^^
do_keyword_loc: pm_location_t
ForNode#do_keyword_loc
The location of the do
keyword, if present.
for i in a do end
^^
end_keyword_loc: pm_location_t
ForNode#end_keyword_loc
The location of the end
keyword.
for i in a end
^^^
Trait Implementations§
Source§impl Clone for pm_for_node
impl Clone for pm_for_node
Source§fn clone(&self) -> pm_for_node
fn clone(&self) -> pm_for_node
Returns a copy 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 pm_for_node
impl Debug for pm_for_node
Source§impl Default for pm_for_node
impl Default for pm_for_node
impl Copy for pm_for_node
Auto Trait Implementations§
impl Freeze for pm_for_node
impl RefUnwindSafe for pm_for_node
impl !Send for pm_for_node
impl !Sync for pm_for_node
impl Unpin for pm_for_node
impl UnwindSafe for pm_for_node
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