Struct ruby_prism::ParametersNode
source · pub struct ParametersNode<'pr> { /* private fields */ }
Expand description
Represents the list of parameters on a method, block, or lambda definition.
def a(b, c, d)
^^^^^^^
end
Implementations§
source§impl<'pr> ParametersNode<'pr>
impl<'pr> ParametersNode<'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 keyword_rest(&self) -> Option<Node<'pr>>
pub fn keyword_rest(&self) -> Option<Node<'pr>>
Returns the keyword_rest
param
sourcepub fn block(&self) -> Option<BlockParameterNode<'pr>>
pub fn block(&self) -> Option<BlockParameterNode<'pr>>
Returns the block
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for ParametersNode<'pr>
impl<'pr> !Send for ParametersNode<'pr>
impl<'pr> !Sync for ParametersNode<'pr>
impl<'pr> Unpin for ParametersNode<'pr>
impl<'pr> !UnwindSafe for ParametersNode<'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