Struct ruby_prism_sys::pm_case_node
source · #[repr(C)]pub struct pm_case_node {
pub base: pm_node_t,
pub predicate: *mut pm_node,
pub conditions: pm_node_list,
pub consequent: *mut pm_else_node,
pub case_keyword_loc: pm_location_t,
pub end_keyword_loc: pm_location_t,
}Expand description
CaseNode
Type: PM_CASE_NODE
@extends pm_node_t
Fields§
§base: pm_node_tThe embedded base node.
predicate: *mut pm_nodeCaseNode#predicate
conditions: pm_node_listCaseNode#conditions
consequent: *mut pm_else_nodeCaseNode#consequent
case_keyword_loc: pm_location_tCaseNode#case_keyword_loc
end_keyword_loc: pm_location_tCaseNode#end_keyword_loc
Trait Implementations§
source§impl Clone for pm_case_node
impl Clone for pm_case_node
source§fn clone(&self) -> pm_case_node
fn clone(&self) -> pm_case_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_case_node
impl Debug for pm_case_node
source§impl Default for pm_case_node
impl Default for pm_case_node
impl Copy for pm_case_node
Auto Trait Implementations§
impl RefUnwindSafe for pm_case_node
impl !Send for pm_case_node
impl !Sync for pm_case_node
impl Unpin for pm_case_node
impl UnwindSafe for pm_case_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