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
impl StructuralPartialEq for Numblock
Auto Trait Implementations
impl RefUnwindSafe for Numblock
impl Send for Numblock
impl Sync for Numblock
impl Unpin for Numblock
impl UnwindSafe for Numblock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more