#[repr(C)]pub struct pm_lambda_node {
pub base: pm_node_t,
pub locals: pm_constant_id_list_t,
pub operator_loc: pm_location_t,
pub opening_loc: pm_location_t,
pub closing_loc: pm_location_t,
pub parameters: *mut pm_node,
pub body: *mut pm_node,
}
Expand description
LambdaNode
Represents using a lambda literal (not the lambda method call).
->(value) { value * 2 }
^^^^^^^^^^^^^^^^^^^^^^^
Type: ::PM_LAMBDA_NODE
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
locals: pm_constant_id_list_t
LambdaNode#locals
operator_loc: pm_location_t
LambdaNode#operator_loc
opening_loc: pm_location_t
LambdaNode#opening_loc
closing_loc: pm_location_t
LambdaNode#closing_loc
parameters: *mut pm_node
LambdaNode#parameters
body: *mut pm_node
LambdaNode#body
Trait Implementations§
Source§impl Clone for pm_lambda_node
impl Clone for pm_lambda_node
Source§fn clone(&self) -> pm_lambda_node
fn clone(&self) -> pm_lambda_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_lambda_node
impl Debug for pm_lambda_node
Source§impl Default for pm_lambda_node
impl Default for pm_lambda_node
impl Copy for pm_lambda_node
Auto Trait Implementations§
impl Freeze for pm_lambda_node
impl RefUnwindSafe for pm_lambda_node
impl !Send for pm_lambda_node
impl !Sync for pm_lambda_node
impl Unpin for pm_lambda_node
impl UnwindSafe for pm_lambda_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