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

pub struct Yield {
    pub args: Vec<Node>,
    pub keyword_l: Range,
    pub begin_l: Option<Range>,
    pub end_l: Option<Range>,
    pub expression_l: Range,
}

Represents an yield keyword

Fields

args: Vec<Node>

A list of arguments given to yield

keyword_l: Range

Location of the yield keyword

yield 1, 2
~~~~~
begin_l: Option<Range>

Location of the open parenthesis

yield(1, 2)
     ~

None if there are no parentheses

end_l: Option<Range>

Location of the closing parenthesis

yield(1, 2)
          ~

None if there are no parentheses

expression_l: Range

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.