Struct ruby_prism::OptionalKeywordParameterNode
source · pub struct OptionalKeywordParameterNode<'pr> { /* private fields */ }
Expand description
Represents an optional keyword parameter to a method, block, or lambda definition.
def a(b: 1)
^^^^
end
Implementations§
source§impl<'pr> OptionalKeywordParameterNode<'pr>
impl<'pr> OptionalKeywordParameterNode<'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) -> ConstantId<'pr>
pub fn name(&self) -> ConstantId<'pr>
Returns the name
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for OptionalKeywordParameterNode<'pr>
impl<'pr> !Send for OptionalKeywordParameterNode<'pr>
impl<'pr> !Sync for OptionalKeywordParameterNode<'pr>
impl<'pr> Unpin for OptionalKeywordParameterNode<'pr>
impl<'pr> !UnwindSafe for OptionalKeywordParameterNode<'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