pub struct ConstEntry {
pub name: ScopedName,
pub type_ann: TypeExpr,
pub expr: Expr,
pub span: Span,
pub src: BodySource,
}Expand description
A const declaration with type annotation and lowered body.
Fields§
§name: ScopedName§type_ann: TypeExpr§expr: Expr§span: Span§src: BodySourceProvenance of this declaration’s span (#868). None means the span
indexes into the IR’s own file source; Some carries the source of a
dependency body merged in by an instantiated include, so diagnostics
anchored on the span render against the right file.
Trait Implementations§
Source§impl Clone for ConstEntry
impl Clone for ConstEntry
Source§fn clone(&self) -> ConstEntry
fn clone(&self) -> ConstEntry
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 ConstEntry
impl RefUnwindSafe for ConstEntry
impl Send for ConstEntry
impl Sync for ConstEntry
impl Unpin for ConstEntry
impl UnsafeUnpin for ConstEntry
impl UnwindSafe 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