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: StringName of the argument, String("foo") for def m(&foo)
operator_l: LocLocation of the & operator
def m(&foo); end
~name_l: LocLocation of the name
def m(&foo); end
~~~expression_l: LocLocation 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