pub struct Closure {
pub file: Arc<String>,
pub source: Arc<String>,
pub args: Vec<Arg>,
pub currents: Vec<Current>,
pub expr: Expression,
pub ret: Type,
pub source_range: Range,
}
Expand description
Closure.
Fields§
§file: Arc<String>
The file where the closure was declared/created.
source: Arc<String>
The source of the closure.
args: Vec<Arg>
Closure arguments.
currents: Vec<Current>
Current object references.
expr: Expression
Closure expression.
ret: Type
The return type of the closure.
source_range: Range
The range in source.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Closure
impl Send for Closure
impl Sync for Closure
impl Unpin for Closure
impl !UnwindSafe for Closure
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