Struct lib_ruby_parser::nodes::Blockarg [−][src]
#[repr(C)]pub struct Blockarg { pub name: String, pub operator_l: Loc, pub name_l: Loc, pub expression_l: Loc, }
Expand description
Represents a &blk
argument in the method definition (but not in the method call, see BlockPass
)
Fields
name: String
Name of the argument, String("foo")
for def m(&foo)
operator_l: Loc
Location of the &
operator
def m(&foo); end
~
name_l: Loc
Location of the name
def m(&foo); end
~~~
expression_l: Loc
Location of the full expression
def m(&foo); end
~~~~
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Blockarg
impl UnwindSafe for Blockarg
Blanket Implementations
Mutably borrows from an owned value. Read more