Struct ruby_prism::CaseMatchNode
source · pub struct CaseMatchNode<'pr> { /* private fields */ }
Expand description
Represents the use of a case statement for pattern matching.
case true
in false
end
^^^^^^^^^
Implementations§
source§impl<'pr> CaseMatchNode<'pr>
impl<'pr> CaseMatchNode<'pr>
sourcepub fn flags(&self) -> pm_node_flags_t
pub fn flags(&self) -> pm_node_flags_t
Returns the flags of this node.
sourcepub fn conditions(&self) -> NodeList<'pr>
pub fn conditions(&self) -> NodeList<'pr>
Returns the conditions
param
sourcepub fn else_clause(&self) -> Option<ElseNode<'pr>>
pub fn else_clause(&self) -> Option<ElseNode<'pr>>
Returns the else_clause
param
sourcepub fn case_keyword_loc(&self) -> Location<'pr>
pub fn case_keyword_loc(&self) -> Location<'pr>
Returns the case_keyword_loc
param
sourcepub fn end_keyword_loc(&self) -> Location<'pr>
pub fn end_keyword_loc(&self) -> Location<'pr>
Returns the end_keyword_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for CaseMatchNode<'pr>
impl<'pr> !Send for CaseMatchNode<'pr>
impl<'pr> !Sync for CaseMatchNode<'pr>
impl<'pr> Unpin for CaseMatchNode<'pr>
impl<'pr> !UnwindSafe for CaseMatchNode<'pr>
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