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: u8Number of parameters that block takes
body: Ptr<Node>Block body
begin_l: LocLocation of the open brace
proc { _1 }
~
end_l: LocLocation of the closing brace
proc { _1 }
~
expression_l: LocLocation 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
impl RefUnwindSafe for Numblock
impl Send for Numblock
impl Sync for Numblock
impl Unpin for Numblock
impl UnwindSafe for Numblock
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,