Sha256: 05e2b4d8e78b0435650c6da6239ce8c53b4de2573e64ba098354b049f23429ec
Contents?: true
Size: 424 Bytes
Versions: 8
Compression:
Stored size: 424 Bytes
Contents
#[derive(Debug)] pub(crate) struct UnsafeCell<T>(std::cell::UnsafeCell<T>); impl<T> UnsafeCell<T> { pub(crate) const fn new(data: T) -> UnsafeCell<T> { UnsafeCell(std::cell::UnsafeCell::new(data)) } pub(crate) fn with<R>(&self, f: impl FnOnce(*const T) -> R) -> R { f(self.0.get()) } pub(crate) fn with_mut<R>(&self, f: impl FnOnce(*mut T) -> R) -> R { f(self.0.get()) } }
Version data entries
8 entries across 8 versions & 1 rubygems