#[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
Represents a hash key/value pair.
{ a => b }
^^^^^^
Type: ::PM_ASSOC_NODE
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
key: *mut pm_node
AssocNode#key
The key of the association. This can be any non-void expression.
{ a: b }
^
{ foo => bar }
^^^
{ def a; end => 1 }
^^^^^^^^^^
value: *mut pm_node
AssocNode#value
The value of the association, if present. This can be any non-void expression.
{ foo => bar }
^^^
{ x: 1 }
^
operator_loc: pm_location_t
AssocNode#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 Freeze for pm_assoc_node
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