#[repr(C)]pub struct pm_begin_node {
pub base: pm_node_t,
pub begin_keyword_loc: pm_location_t,
pub statements: *mut pm_statements_node,
pub rescue_clause: *mut pm_rescue_node,
pub else_clause: *mut pm_else_node,
pub ensure_clause: *mut pm_ensure_node,
pub end_keyword_loc: pm_location_t,
}Expand description
BeginNode
Represents a begin statement.
begin
foo
end
^^^^^Type: ::PM_BEGIN_NODE
@extends pm_node_t
Fields§
§base: pm_node_tThe embedded base node.
begin_keyword_loc: pm_location_tBeginNode#begin_keyword_loc
Represents the location of the begin keyword.
begin x end
^^^^^statements: *mut pm_statements_nodeBeginNode#statements
Represents the statements within the begin block.
begin x end
^rescue_clause: *mut pm_rescue_nodeBeginNode#rescue_clause
Represents the rescue clause within the begin block.
begin x; rescue y; end
^^^^^^^^else_clause: *mut pm_else_nodeBeginNode#else_clause
Represents the else clause within the begin block.
begin x; rescue y; else z; end
^^^^^^ensure_clause: *mut pm_ensure_nodeBeginNode#ensure_clause
Represents the ensure clause within the begin block.
begin x; ensure y; end
^^^^^^^^end_keyword_loc: pm_location_tBeginNode#end_keyword_loc
Represents the location of the end keyword.
begin x end
^^^Trait Implementations§
Source§impl Clone for pm_begin_node
impl Clone for pm_begin_node
Source§fn clone(&self) -> pm_begin_node
fn clone(&self) -> pm_begin_node
Returns a duplicate 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_begin_node
impl Debug for pm_begin_node
Source§impl Default for pm_begin_node
impl Default for pm_begin_node
impl Copy for pm_begin_node
Auto Trait Implementations§
impl Freeze for pm_begin_node
impl RefUnwindSafe for pm_begin_node
impl !Send for pm_begin_node
impl !Sync for pm_begin_node
impl Unpin for pm_begin_node
impl UnwindSafe for pm_begin_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