Struct ruby_prism_sys::pm_assoc_node
source · #[repr(C)]pub struct pm_assoc_node {
pub base: pm_node_t,
pub key: *mut pm_node,
pub value: *mut pm_node,
pub operator_loc: pm_location_t,
}Expand description
AssocNode
Type: PM_ASSOC_NODE
@extends pm_node_t
Fields§
§base: pm_node_tThe embedded base node.
key: *mut pm_nodeAssocNode#key
The key of the association. This can be any non-void expression.
{ a: b }
^
{ foo => bar }
^^^
{ def a; end => 1 }
^^^^^^^^^^
value: *mut pm_nodeAssocNode#value
The value of the association, if present. This can be any non-void expression.
{ foo => bar }
^^^
{ x: 1 }
^
operator_loc: pm_location_tAssocNode#operator_loc
The location of the => operator, if present.
{ foo => bar }
^^
Trait Implementations§
source§impl Clone for pm_assoc_node
impl Clone for pm_assoc_node
source§fn clone(&self) -> pm_assoc_node
fn clone(&self) -> pm_assoc_node
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for pm_assoc_node
impl Debug for pm_assoc_node
source§impl Default for pm_assoc_node
impl Default for pm_assoc_node
impl Copy for pm_assoc_node
Auto Trait Implementations§
impl RefUnwindSafe for pm_assoc_node
impl !Send for pm_assoc_node
impl !Sync for pm_assoc_node
impl Unpin for pm_assoc_node
impl UnwindSafe for pm_assoc_node
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