Struct debris_llir::llir_shared_state::SharedState
source · pub struct SharedState {
pub(crate) id: SharedStateId,
pub(crate) ancestor: Option<SharedStateId>,
pub(crate) compiled_contexts: FxHashMap<MirContextId, BlockId>,
pub(crate) functions: FxHashMap<BlockId, Function>,
pub(crate) object_mapping: ObjectMapping,
pub(crate) local_runtime: Runtime,
}
Fields§
§id: SharedStateId
§ancestor: Option<SharedStateId>
§compiled_contexts: FxHashMap<MirContextId, BlockId>
§functions: FxHashMap<BlockId, Function>
§object_mapping: ObjectMapping
§local_runtime: Runtime
The local runtime
Implementations§
pub fn new(id: SharedStateId, ancestor: Option<SharedStateId>) -> Self
sourcepub fn unify_with(
&mut self,
state: SharedState,
mode: EvaluationMode
) -> SharedState
pub fn unify_with( &mut self, state: SharedState, mode: EvaluationMode ) -> SharedState
Adds the accumulated state of another function builder to the state
of this if perform_writes
is false
Trait Implementations§
Auto Trait Implementations§
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