Struct lib_ruby_parser::nodes::Yield
source · [−]#[repr(C)]pub struct Yield {
pub args: Vec<Node>,
pub keyword_l: Loc,
pub begin_l: Option<Loc>,
pub end_l: Option<Loc>,
pub expression_l: Loc,
}
Expand description
Represents an yield
keyword
Fields
args: Vec<Node>
A list of arguments given to yield
keyword_l: Loc
Location of the yield
keyword
yield 1, 2
~~~~~
begin_l: Option<Loc>
Location of the open parenthesis
yield(1, 2)
~
None
if there are no parentheses
end_l: Option<Loc>
Location of the closing parenthesis
yield(1, 2)
~
None
if there are no parentheses
expression_l: Loc
Location of the full expression
yield(1, 2)
~~~~~~~~~~~
Trait Implementations
impl StructuralPartialEq for Yield
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more