Struct lib_ruby_parser::nodes::Numblock [−][src]
#[repr(C)]pub struct Numblock { pub call: Box<Node>, pub numargs: u8, pub body: Box<Node>, pub begin_l: Loc, pub end_l: Loc, pub expression_l: Loc, }
Expand description
Represents a block that takes numbered parameters (i.e. proc { _1 }
)
Fields
call: Box<Node>
Method call that takes a block
numargs: u8
Number of parameters that block takes
body: Box<Node>
Block body
begin_l: Loc
Location of the open brace
proc { _1 }
~
end_l: Loc
Location of the closing brace
proc { _1 }
~
expression_l: Loc
Location of the open brace
proc { _1 }
~~~~~~~~~~~
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Numblock
impl UnwindSafe for Numblock
Blanket Implementations
Mutably borrows from an owned value. Read more