Lines Matching refs:data
34 data: UnsafeCell<T>, field
40 data: *const T, field
49 data: *const T, field
57 data: *mut T, field
68 pub const fn new(data: T) -> Self { in new()
71 data: UnsafeCell::new(data), in new()
79 let RwLock { data, .. } = self; in into_inner()
80 return data.into_inner(); in into_inner()
88 return self.data.get(); in as_mut_ptr()
130 data: unsafe { &*self.data.get() }, in try_read()
175 data: unsafe { &mut *self.data.get() }, in try_write()
204 data: unsafe { &mut *self.data.get() }, in try_upgradeable_read()
243 unsafe { &mut *self.data.get() } in get_mut()
255 fn from(data: T) -> Self { in from()
256 return Self::new(data); in from()
265 let Self { data, .. } = this; in leak()
266 return unsafe { &*data }; in leak()
289 data: unsafe { &mut *inner.data.get() }, in try_upgrade()
325 data: unsafe { &*inner.data.get() }, in downgrade()
336 unsafe { &*this.data } in leak()
347 return unsafe { &*this.data }; in leak()
364 data: unsafe { &*inner.data.get() }, in downgrade()
386 data: unsafe { &*inner.data.get() }, in downgrade_to_upgradeable()
395 return unsafe { &*self.data }; in deref()
403 return unsafe { &*self.data }; in deref()
411 return unsafe { &*self.data }; in deref()
417 return unsafe { &mut *self.data }; in deref_mut()