#[repr(C)]pub struct pm_when_node {
pub base: pm_node_t,
pub keyword_loc: pm_location_t,
pub conditions: pm_node_list,
pub then_keyword_loc: pm_location_t,
pub statements: *mut pm_statements_node,
}
Expand description
WhenNode
Represents the use of the when
keyword within a case statement.
case true
when true
^^^^^^^^^
end
Type: ::PM_WHEN_NODE
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
keyword_loc: pm_location_t
WhenNode#keyword_loc
conditions: pm_node_list
WhenNode#conditions
then_keyword_loc: pm_location_t
WhenNode#then_keyword_loc
statements: *mut pm_statements_node
WhenNode#statements
Trait Implementations§
Source§impl Clone for pm_when_node
impl Clone for pm_when_node
Source§fn clone(&self) -> pm_when_node
fn clone(&self) -> pm_when_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_when_node
impl Debug for pm_when_node
Source§impl Default for pm_when_node
impl Default for pm_when_node
impl Copy for pm_when_node
Auto Trait Implementations§
impl Freeze for pm_when_node
impl RefUnwindSafe for pm_when_node
impl !Send for pm_when_node
impl !Sync for pm_when_node
impl Unpin for pm_when_node
impl UnwindSafe for pm_when_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