Struct lib_ruby_parser::nodes::Kwoptarg [−][src]
#[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: StringName of the optional keyword argument
default: Box<Node>Default value of the optional keyword argument
name_l: LocLocation of the argument name
def m(foo: 1); end
~~~expression_l: LocLocation of the argument name
def m(foo: 1); end
~~~~~~Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Kwoptarg
impl UnwindSafe for Kwoptarg
Blanket Implementations
Mutably borrows from an owned value. Read more