Struct lib_ruby_parser::nodes::Blockarg
source · #[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: Loc
Location of the &
operator
def m(&foo); end
~
name_l: Option<Loc>
Location of the name
def m(&foo); end
~~~
expression_l: Loc
Location of the full expression
def m(&foo); end
~~~~
Trait Implementations§
source§impl PartialEq for Blockarg
impl PartialEq for Blockarg
impl StructuralPartialEq for Blockarg
Auto Trait Implementations§
impl Freeze for Blockarg
impl RefUnwindSafe for Blockarg
impl Send for Blockarg
impl Sync for Blockarg
impl Unpin for Blockarg
impl UnwindSafe for Blockarg
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