[][src]Struct lib_ruby_parser::nodes::Numblock

pub struct Numblock {
    pub call: Node,
    pub numargs: u8,
    pub body: Node,
    pub begin_l: Range,
    pub end_l: Range,
    pub expression_l: Range,
}

Represents a block that takes numbered parameters (i.e. proc { _1 })

Fields

call: Node

Method call that takes a block

numargs: u8

Number of parameters that block takes

body: Node

Block body

begin_l: Range

Location of the open brace

proc { _1 }
     ~
end_l: Range

Location of the closing brace

proc { _1 }
          ~
expression_l: Range

Location of the open brace

proc { _1 }
~~~~~~~~~~~

Trait Implementations

impl Clone for Numblock[src]

impl Debug for Numblock[src]

impl PartialEq<Numblock> for Numblock[src]

impl StructuralPartialEq for Numblock[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.