pub struct ClosureUseVar {
pub name: Box<str>,
pub by_ref: bool,
pub span: Span,
}Expand description
A variable captured by a closure use clause.
Fields§
§name: Box<str>Captured variable name without $.
by_ref: boolWhether captured by reference.
span: SpanSource span.
Trait Implementations§
Source§impl Clone for ClosureUseVar
impl Clone for ClosureUseVar
Source§impl Debug for ClosureUseVar
impl Debug for ClosureUseVar
Auto Trait Implementations§
impl Freeze for ClosureUseVar
impl RefUnwindSafe for ClosureUseVar
impl Send for ClosureUseVar
impl Sync for ClosureUseVar
impl Unpin for ClosureUseVar
impl UnsafeUnpin for ClosureUseVar
impl UnwindSafe for ClosureUseVar
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