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