#[repr(C)]pub struct pm_while_node {
    pub base: pm_node_t,
    pub 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_tThe embedded base node.
keyword_loc: pm_location_tWhileNode#keyword_loc
closing_loc: pm_location_tWhileNode#closing_loc
predicate: *mut pm_nodeWhileNode#predicate
statements: *mut pm_statements_nodeWhileNode#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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)