pub struct ForSource {
pub text: String,
pub kind: ForSourceKind,
pub span: Span,
}Expand description
What a for iterates: inline comprehension text, or the name of a
bound producer wire.
Fields§
§text: StringThe raw text after for, preserved for diagnostics and for
pretty-printing round trips.
kind: ForSourceKindWhat the text denotes once parsed.
span: SpanWhere the source appears.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ForSource
impl RefUnwindSafe for ForSource
impl Send for ForSource
impl Sync for ForSource
impl Unpin for ForSource
impl UnsafeUnpin for ForSource
impl UnwindSafe for ForSource
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