pub struct Generator {
pub pattern: Pattern,
pub _arrow: SymbolToken,
pub source: Expr,
}Expand description
Pattern (<-|<=) Expr
Fields§
§pattern: Pattern§_arrow: SymbolToken§source: ExprTrait Implementations§
Source§impl PositionRange for Generator
impl PositionRange for Generator
Source§fn start_position(&self) -> Position
fn start_position(&self) -> Position
Returns the (inclusive) start position of this.
Source§fn end_position(&self) -> Position
fn end_position(&self) -> Position
Returns the (exclusive) end position of this.
Auto Trait Implementations§
impl Freeze for Generator
impl RefUnwindSafe for Generator
impl Send for Generator
impl Sync for Generator
impl Unpin for Generator
impl UnwindSafe for Generator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more