Struct debris_mir::mir_nodes::RuntimePromotion
source · pub struct RuntimePromotion {
pub span: Span,
pub value: MirObjectId,
pub target: MirObjectId,
}
Expand description
Tries to promote a comptime value to a runtime value, but does not fail if
no such conversion exists.
Used in let foo = expression();
statements, because foo by default stores
runtime encodable values.
Fields§
§span: Span
§value: MirObjectId
§target: MirObjectId
Trait Implementations§
source§impl Debug for RuntimePromotion
impl Debug for RuntimePromotion
source§impl From<RuntimePromotion> for MirNode
impl From<RuntimePromotion> for MirNode
source§fn from(value: RuntimePromotion) -> Self
fn from(value: RuntimePromotion) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for RuntimePromotion
impl Send for RuntimePromotion
impl Sync for RuntimePromotion
impl Unpin for RuntimePromotion
impl UnwindSafe for RuntimePromotion
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