pub(crate) struct VarInfo {
pub kind: VarKind,
pub initialized: bool,
pub ty: Option<Type>,
pub actual_ty: Option<Type>,
pub copied: bool,
pub is_actual_type_modified_in_loop: bool,
}
Fields
kind: VarKind
initialized: bool
ty: Option<Type>
Declared type.
actual_ty: Option<Type>
Stored type.
copied: bool
Copied from parent scope. If this is true, it’s not a variable declaration.
is_actual_type_modified_in_loop: bool
If this is true, types will become union while moving variables to parent scope.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for VarInfo
impl Send for VarInfo
impl Sync for VarInfo
impl Unpin for VarInfo
impl UnwindSafe for VarInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more