Struct ruby_prism::AssocNode
source · pub struct AssocNode<'pr> { /* private fields */ }
Expand description
Represents a hash key/value pair.
{ a => b }
^^^^^^
Implementations§
source§impl<'pr> AssocNode<'pr>
impl<'pr> AssocNode<'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 operator_loc(&self) -> Option<Location<'pr>>
pub fn operator_loc(&self) -> Option<Location<'pr>>
Returns the operator_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for AssocNode<'pr>
impl<'pr> !Send for AssocNode<'pr>
impl<'pr> !Sync for AssocNode<'pr>
impl<'pr> Unpin for AssocNode<'pr>
impl<'pr> !UnwindSafe for AssocNode<'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