Struct ruby_prism::RestParameterNode
source · pub struct RestParameterNode<'pr> { /* private fields */ }
Expand description
Represents a rest parameter to a method, block, or lambda definition.
def a(*b)
^^
end
Implementations§
source§impl<'pr> RestParameterNode<'pr>
impl<'pr> RestParameterNode<'pr>
sourcepub fn flags(&self) -> pm_node_flags_t
pub fn flags(&self) -> pm_node_flags_t
Returns the flags of this node.
sourcepub fn is_repeated_parameter(&self) -> bool
pub fn is_repeated_parameter(&self) -> bool
a parameter name that has been repeated in the method signature
sourcepub fn name(&self) -> Option<ConstantId<'pr>>
pub fn name(&self) -> Option<ConstantId<'pr>>
Returns the name
param
sourcepub fn operator_loc(&self) -> Location<'pr>
pub fn operator_loc(&self) -> Location<'pr>
Returns the operator_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for RestParameterNode<'pr>
impl<'pr> !Send for RestParameterNode<'pr>
impl<'pr> !Sync for RestParameterNode<'pr>
impl<'pr> Unpin for RestParameterNode<'pr>
impl<'pr> !UnwindSafe for RestParameterNode<'pr>
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