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> Freeze for ParametersNode<'pr>
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