Struct lib_ruby_parser::nodes::Yield[][src]

#[repr(C)]pub struct Yield {
    pub args: List<Node>,
    pub keyword_l: LocPtr,
    pub begin_l: MaybeLocPtr,
    pub end_l: MaybeLocPtr,
    pub expression_l: LocPtr,
}

Represents an yield keyword

Fields

args: List<Node>

A list of arguments given to yield

keyword_l: LocPtr

Location of the yield keyword

yield 1, 2
~~~~~
begin_l: MaybeLocPtr

Location of the open parenthesis

yield(1, 2)
     ~

None if there are no parentheses

end_l: MaybeLocPtr

Location of the closing parenthesis

yield(1, 2)
          ~

None if there are no parentheses

expression_l: LocPtr

Location of the full expression

yield(1, 2)
~~~~~~~~~~~

Trait Implementations

impl Clone for Yield[src]

impl Debug for Yield[src]

impl PartialEq<Yield> for Yield[src]

impl StructuralPartialEq for Yield[src]

Auto Trait Implementations

impl RefUnwindSafe for Yield

impl Send for Yield

impl Sync for Yield

impl Unpin for Yield

impl UnwindSafe for Yield

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.