#[repr(C)]pub struct pm_block_parameters_node {
pub base: pm_node_t,
pub parameters: *mut pm_parameters_node,
pub locals: pm_node_list,
pub opening_loc: pm_location_t,
pub closing_loc: pm_location_t,
}
Expand description
BlockParametersNode
Represents a block’s parameters declaration.
-> (a, b = 1; local) { }
^^^^^^^^^^^^^^^^^
foo do |a, b = 1; local|
^^^^^^^^^^^^^^^^^
end
Type: ::PM_BLOCK_PARAMETERS_NODE
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
parameters: *mut pm_parameters_node
BlockParametersNode#parameters
Represents the parameters of the block.
-> (a, b = 1; local) { }
^^^^^^^^
foo do |a, b = 1; local|
^^^^^^^^
end
locals: pm_node_list
BlockParametersNode#locals
Represents the local variables of the block.
-> (a, b = 1; local) { }
^^^^^
foo do |a, b = 1; local|
^^^^^
end
opening_loc: pm_location_t
BlockParametersNode#opening_loc
Represents the opening location of the block parameters.
-> (a, b = 1; local) { }
^
foo do |a, b = 1; local|
^
end
closing_loc: pm_location_t
BlockParametersNode#closing_loc
Represents the closing location of the block parameters.
-> (a, b = 1; local) { }
^
foo do |a, b = 1; local|
^
end
Trait Implementations§
Source§impl Clone for pm_block_parameters_node
impl Clone for pm_block_parameters_node
Source§fn clone(&self) -> pm_block_parameters_node
fn clone(&self) -> pm_block_parameters_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_parameters_node
impl Debug for pm_block_parameters_node
Source§impl Default for pm_block_parameters_node
impl Default for pm_block_parameters_node
impl Copy for pm_block_parameters_node
Auto Trait Implementations§
impl Freeze for pm_block_parameters_node
impl RefUnwindSafe for pm_block_parameters_node
impl !Send for pm_block_parameters_node
impl !Sync for pm_block_parameters_node
impl Unpin for pm_block_parameters_node
impl UnwindSafe for pm_block_parameters_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