pub struct CapturedVar {
pub name: Ident,
pub ty: Type,
pub boxed: bool,
}Expand description
boxed: true — env stores (ref $box T), mutations go through box (let/param captures).
boxed: false — env stores the value directly (const captures, copied at construction).
Fields§
§name: Ident§ty: Type§boxed: boolTrait Implementations§
Source§impl Clone for CapturedVar
impl Clone for CapturedVar
Source§impl Debug for CapturedVar
impl Debug for CapturedVar
Source§impl PartialEq for CapturedVar
impl PartialEq for CapturedVar
impl StructuralPartialEq for CapturedVar
Auto Trait Implementations§
impl Freeze for CapturedVar
impl RefUnwindSafe for CapturedVar
impl Send for CapturedVar
impl Sync for CapturedVar
impl Unpin for CapturedVar
impl UnsafeUnpin for CapturedVar
impl UnwindSafe for CapturedVar
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