Struct lib_ruby_parser::nodes::Blockarg [−][src]
#[repr(C)]pub struct Blockarg {
pub name: Option<String>,
pub operator_l: Loc,
pub name_l: Option<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: Option<String>Name of the argument, String("foo") for def m(&foo)
operator_l: LocLocation of the & operator
def m(&foo); end
~name_l: Option<Loc>Location 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
