Struct ruby_prism::CaseNode
source · pub struct CaseNode<'pr> { /* private fields */ }
Expand description
Represents the use of a case statement.
case true
when false
end
^^^^^^^^^^
Implementations§
source§impl<'pr> CaseNode<'pr>
impl<'pr> CaseNode<'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 CaseNode<'pr>
impl<'pr> !Send for CaseNode<'pr>
impl<'pr> !Sync for CaseNode<'pr>
impl<'pr> Unpin for CaseNode<'pr>
impl<'pr> !UnwindSafe for CaseNode<'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