Struct lib_ruby_parser::nodes::Kwarg
source · #[repr(C)]pub struct Kwarg {
pub name: String,
pub name_l: Loc,
pub expression_l: Loc,
}
Expand description
Represents required keyword argument (i.e. foo
in def m(foo:); end
)
Fields§
§name: String
Name of the keyword argument
name_l: Loc
Location of the name
def foo(bar:); end
~~~
expression_l: Loc
Location of the full expression
def foo(bar:); end
~~~~
Trait Implementations§
source§impl PartialEq for Kwarg
impl PartialEq for Kwarg
impl StructuralPartialEq for Kwarg
Auto Trait Implementations§
impl Freeze for Kwarg
impl RefUnwindSafe for Kwarg
impl Send for Kwarg
impl Sync for Kwarg
impl Unpin for Kwarg
impl UnwindSafe for Kwarg
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