#[repr(C)]pub struct Arg {
pub name: String,
pub expression_l: Loc,
}
Expand description
Represents a positional required block/method argument.
a
in def m(a); end
or proc { |a| }
Fields§
§name: String
Name of the argument
expression_l: Loc
Location of the full expression
def m(argument); end
~~~~~~~~
Trait Implementations§
impl StructuralPartialEq for Arg
Auto Trait Implementations§
impl Freeze for Arg
impl RefUnwindSafe for Arg
impl Send for Arg
impl Sync for Arg
impl Unpin for Arg
impl UnwindSafe for Arg
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