Lines Matching refs:T
11 pub struct LockFreeFlags<T> {
12 inner: UnsafeCell<T>,
15 impl<T> LockFreeFlags<T> {
16 pub unsafe fn new(inner: T) -> Self { in new()
23 pub fn get_mut(&self) -> &mut T { in get_mut() argument
25 (self.inner.get().as_ref().unwrap() as *const T as *mut T) in get_mut() constant
31 pub fn get(&self) -> &T { in get() argument
36 unsafe impl<T: Sync> Sync for LockFreeFlags<T> {}
37 unsafe impl<T: Send> Send for LockFreeFlags<T> {}
39 impl<T: Clone> Clone for LockFreeFlags<T> {
45 impl<T: Debug> Debug for LockFreeFlags<T> {