Struct lib_ruby_parser::nodes::Shadowarg
source · #[repr(C)]pub struct Shadowarg {
pub name: String,
pub expression_l: Loc,
}
Expand description
Represents a special block argument that “shadows” outer variable (i.e. |;foo|
)
Fields§
§name: String
Name of the argument
expression_l: Loc
Location of the argument
proc { |;foo|}
~~~
Trait Implementations§
source§impl PartialEq for Shadowarg
impl PartialEq for Shadowarg
impl StructuralPartialEq for Shadowarg
Auto Trait Implementations§
impl Freeze for Shadowarg
impl RefUnwindSafe for Shadowarg
impl Send for Shadowarg
impl Sync for Shadowarg
impl Unpin for Shadowarg
impl UnwindSafe for Shadowarg
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