#[repr(C)]pub struct pm_block_argument_node {
pub base: pm_node_t,
pub expression: *mut pm_node,
pub operator_loc: pm_location_t,
}
Expand description
BlockArgumentNode
Represents a block argument using &
.
bar(&args)
^^^^^^^^^^
Type: ::PM_BLOCK_ARGUMENT_NODE
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
expression: *mut pm_node
BlockArgumentNode#expression
The expression that is being passed as a block argument. This can be any non-void expression.
foo(&args)
^^^^^
operator_loc: pm_location_t
BlockArgumentNode#operator_loc
Represents the location of the &
operator.
foo(&args)
^
Trait Implementations§
Source§impl Clone for pm_block_argument_node
impl Clone for pm_block_argument_node
Source§fn clone(&self) -> pm_block_argument_node
fn clone(&self) -> pm_block_argument_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_block_argument_node
impl Debug for pm_block_argument_node
Source§impl Default for pm_block_argument_node
impl Default for pm_block_argument_node
impl Copy for pm_block_argument_node
Auto Trait Implementations§
impl Freeze for pm_block_argument_node
impl RefUnwindSafe for pm_block_argument_node
impl !Send for pm_block_argument_node
impl !Sync for pm_block_argument_node
impl Unpin for pm_block_argument_node
impl UnwindSafe for pm_block_argument_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