#[repr(C)]pub struct pm_while_node {
pub base: pm_node_t,
pub keyword_loc: pm_location_t,
pub do_keyword_loc: pm_location_t,
pub closing_loc: pm_location_t,
pub predicate: *mut pm_node,
pub statements: *mut pm_statements_node,
}
Expand description
WhileNode
Represents the use of the while
keyword, either in the block form or the modifier form.
bar while foo
^^^^^^^^^^^^^
while foo do bar end
^^^^^^^^^^^^^^^^^^^^
Type: ::PM_WHILE_NODE
Flags (#pm_loop_flags):
- ::PM_LOOP_FLAGS_BEGIN_MODIFIER
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
keyword_loc: pm_location_t
WhileNode#keyword_loc
do_keyword_loc: pm_location_t
WhileNode#do_keyword_loc
closing_loc: pm_location_t
WhileNode#closing_loc
predicate: *mut pm_node
WhileNode#predicate
statements: *mut pm_statements_node
WhileNode#statements
Trait Implementations§
Source§impl Clone for pm_while_node
impl Clone for pm_while_node
Source§fn clone(&self) -> pm_while_node
fn clone(&self) -> pm_while_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_while_node
impl Debug for pm_while_node
Source§impl Default for pm_while_node
impl Default for pm_while_node
impl Copy for pm_while_node
Auto Trait Implementations§
impl Freeze for pm_while_node
impl RefUnwindSafe for pm_while_node
impl !Send for pm_while_node
impl !Sync for pm_while_node
impl Unpin for pm_while_node
impl UnwindSafe for pm_while_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