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> Freeze for CaseNode<'pr>
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