Struct lib_ruby_parser::nodes::Restarg [−][src]
Represents positional rest argument (i.e. *foo
in def m(*foo); end
)
Fields
name: Option<String>
Name of the argument.
None
if argument has no name (i.e. def m(*); end
)
operator_l: Loc
Location of the *
operator
def m(*foo); end
~
name_l: Option<Loc>
Location of the argument name
def m(*foo); end
~~~
expression_l: Loc
Location of the full expression
def m(*foo); end
~~~~
Trait Implementations
impl Clone for Restarg
[src][+]
impl Debug for Restarg
[src][+]
impl PartialEq<Restarg> for Restarg
[src][+]
impl StructuralPartialEq for Restarg
[src]
Auto Trait Implementations
impl RefUnwindSafe for Restarg
impl Send for Restarg
impl Sync for Restarg
impl Unpin for Restarg
impl UnwindSafe for Restarg
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,