Struct debris_llir::llir_shared_state::SharedStates
source · pub struct SharedStates {
counter: Cell<u32>,
inner: FrozenMap<SharedStateId, Box<SharedState>>,
}
Fields§
§counter: Cell<u32>
§inner: FrozenMap<SharedStateId, Box<SharedState>>
Implementations§
pub fn next_id(&self) -> SharedStateId
pub fn insert(&self, shared_state: SharedState)
pub fn get(&self, id: SharedStateId) -> Option<&SharedState>
Trait Implementations§
source§fn default() -> SharedStates
fn default() -> SharedStates
Returns the “default value” for a type. Read more
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