Searched refs:SetStorage (Results 1 – 1 of 1) sorted by relevance
30 static STORAGE: Cell<Option<NonNull<SetStorage>>> = const { Cell::new(None) };33 enum SetStorage { enum46 let mut storage = SetStorage::Present(NonNull::from(store)); in set()50 struct ResetTls(Option<NonNull<SetStorage>>); in set()141 Some(mut storage) => match mem::replace(storage.as_mut(), SetStorage::Taken) { in try_get()142 SetStorage::Taken => TryGet::Taken, in try_get()143 SetStorage::Present(mut ptr) => { in try_get()153 struct ResetStorage(NonNull<SetStorage>, NonNull<dyn VMStore>); in try_get()158 *self.0.as_mut() = SetStorage::Present(self.1); in try_get()