Struct lib_ruby_parser::nodes::Numblock
source · #[repr(C)]pub struct Numblock {
pub call: Box<Node>,
pub numargs: u8,
pub body: Box<Node>,
pub begin_l: Loc,
pub end_l: Loc,
pub expression_l: Loc,
}
Expand description
Represents a block that takes numbered parameters (i.e. proc { _1 }
)
Fields§
§call: Box<Node>
Method call that takes a block
numargs: u8
Number of parameters that block takes
body: Box<Node>
Block body
begin_l: Loc
Location of the open brace
proc { _1 }
~
end_l: Loc
Location of the closing brace
proc { _1 }
~
expression_l: Loc
Location of the open brace
proc { _1 }
~~~~~~~~~~~
Trait Implementations§
source§impl PartialEq for Numblock
impl PartialEq for Numblock
impl StructuralPartialEq for Numblock
Auto Trait Implementations§
impl Freeze for Numblock
impl RefUnwindSafe for Numblock
impl Send for Numblock
impl Sync for Numblock
impl Unpin for Numblock
impl UnwindSafe for Numblock
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