pub struct UnfrozenConstEntry {
pub name: ScopedName,
pub type_ann: TypeExpr,
pub expr: Expr,
pub span: Span,
pub src: BodySource,
}Expand description
A const declaration awaiting body lowering at UnfrozenIR::freeze.
Pre-freeze bodies stay syntactic so include instantiation can rewrite reference paths (prefixing, index/type rebinding) before resolution.
Fields§
§name: ScopedName§type_ann: TypeExpr§expr: Expr§span: Span§src: BodySourceSource provenance of span; see BodySource (#868).
Trait Implementations§
Source§impl Clone for UnfrozenConstEntry
impl Clone for UnfrozenConstEntry
Source§fn clone(&self) -> UnfrozenConstEntry
fn clone(&self) -> UnfrozenConstEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UnfrozenConstEntry
impl RefUnwindSafe for UnfrozenConstEntry
impl Send for UnfrozenConstEntry
impl Sync for UnfrozenConstEntry
impl Unpin for UnfrozenConstEntry
impl UnsafeUnpin for UnfrozenConstEntry
impl UnwindSafe for UnfrozenConstEntry
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