pub struct ConstEntry {
pub expr: Rc<Expr>,
pub ty: Option<TypeAst>,
pub state: Cell<bool>,
pub value: RefCell<Value>,
}Expand description
a constant’s declaration and memoized value
Fields§
§expr: Rc<Expr>the expression
ty: Option<TypeAst>the annotation
state: Cell<bool>whether the value is computed
value: RefCell<Value>the value
Auto Trait Implementations§
impl !Freeze for ConstEntry
impl !RefUnwindSafe for ConstEntry
impl !Send for ConstEntry
impl !Sync for ConstEntry
impl !UnwindSafe for ConstEntry
impl Unpin for ConstEntry
impl UnsafeUnpin for ConstEntry
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