Struct ruby_prism::BlockParametersNode
source · pub struct BlockParametersNode<'pr> { /* private fields */ }
Expand description
Represents a block’s parameters declaration.
-> (a, b = 1; local) { }
^^^^^^^^^^^^^^^^^
foo do |a, b = 1; local|
^^^^^^^^^^^^^^^^^
end
Implementations§
source§impl<'pr> BlockParametersNode<'pr>
impl<'pr> BlockParametersNode<'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 parameters(&self) -> Option<ParametersNode<'pr>>
pub fn parameters(&self) -> Option<ParametersNode<'pr>>
Returns the parameters
param
sourcepub fn opening_loc(&self) -> Option<Location<'pr>>
pub fn opening_loc(&self) -> Option<Location<'pr>>
Returns the opening_loc
param
sourcepub fn closing_loc(&self) -> Option<Location<'pr>>
pub fn closing_loc(&self) -> Option<Location<'pr>>
Returns the closing_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for BlockParametersNode<'pr>
impl<'pr> !Send for BlockParametersNode<'pr>
impl<'pr> !Sync for BlockParametersNode<'pr>
impl<'pr> Unpin for BlockParametersNode<'pr>
impl<'pr> !UnwindSafe for BlockParametersNode<'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