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

#[repr(C)]
pub struct Numblock { pub call: Ptr<Node>, pub numargs: u8, pub body: Ptr<Node>, pub begin_l: Loc, pub end_l: Loc, pub expression_l: Loc, }

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

Fields

call: Ptr<Node>

Method call that takes a block

numargs: u8

Number of parameters that block takes

body: Ptr<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 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.