Lines Matching refs:Shared
36 pub current: Shared<'g, T>,
365 pub fn load<'g>(&self, ord: Ordering, _: &'g Guard) -> Shared<'g, T> { in load()
366 unsafe { Shared::from_usize(self.data.load(ord)) } in load()
390 pub fn load_consume<'g>(&self, _: &'g Guard) -> Shared<'g, T> { in load_consume()
391 unsafe { Shared::from_usize(self.data.load_consume()) } in load_consume()
429 pub fn swap<'g, P: Pointer<T>>(&self, new: P, ord: Ordering, _: &'g Guard) -> Shared<'g, T> { in swap()
430 unsafe { Shared::from_usize(self.data.swap(new.into_usize(), ord)) } in swap()
465 current: Shared<'_, T>, in compare_exchange()
470 ) -> Result<Shared<'g, T>, CompareExchangeError<'g, T, P>> in compare_exchange()
477 .map(|_| unsafe { Shared::from_usize(new) }) in compare_exchange()
480 current: Shared::from_usize(current), in compare_exchange()
540 current: Shared<'_, T>, in compare_exchange_weak()
545 ) -> Result<Shared<'g, T>, CompareExchangeError<'g, T, P>> in compare_exchange_weak()
552 .map(|_| unsafe { Shared::from_usize(new) }) in compare_exchange_weak()
555 current: Shared::from_usize(current), in compare_exchange_weak()
604 current: Shared<'_, T>, in compare_and_set()
608 ) -> Result<Shared<'g, T>, CompareAndSetError<'g, T, P>> in compare_and_set()
681 current: Shared<'_, T>, in compare_and_set_weak()
685 ) -> Result<Shared<'g, T>, CompareAndSetError<'g, T, P>> in compare_and_set_weak()
712 pub fn fetch_and<'g>(&self, val: usize, ord: Ordering, _: &'g Guard) -> Shared<'g, T> { in fetch_and()
713 unsafe { Shared::from_usize(self.data.fetch_and(val | !low_bits::<T>(), ord)) } in fetch_and()
735 pub fn fetch_or<'g>(&self, val: usize, ord: Ordering, _: &'g Guard) -> Shared<'g, T> { in fetch_or()
736 unsafe { Shared::from_usize(self.data.fetch_or(val & low_bits::<T>(), ord)) } in fetch_or()
758 pub fn fetch_xor<'g>(&self, val: usize, ord: Ordering, _: &'g Guard) -> Shared<'g, T> { in fetch_xor()
759 unsafe { Shared::from_usize(self.data.fetch_xor(val & low_bits::<T>(), ord)) } in fetch_xor()
877 impl<'g, T: ?Sized + Pointable> From<Shared<'g, T>> for Atomic<T> {
887 fn from(ptr: Shared<'g, T>) -> Self { in from()
1042 pub fn into_shared<'g>(self, _: &'g Guard) -> Shared<'g, T> { in into_shared()
1043 unsafe { Shared::from_usize(self.into_usize()) } in into_shared()
1176 pub struct Shared<'g, T: 'g + ?Sized + Pointable> { struct
1181 impl<T: ?Sized + Pointable> Clone for Shared<'_, T> { argument
1190 impl<T: ?Sized + Pointable> Copy for Shared<'_, T> {} implementation
1192 impl<T: ?Sized + Pointable> Pointer<T> for Shared<'_, T> { implementation
1200 Shared { in from_usize()
1207 impl<'g, T> Shared<'g, T> { implementation
1231 impl<'g, T: ?Sized + Pointable> Shared<'g, T> { impl
1242 pub fn null() -> Shared<'g, T> { in null()
1243 Shared { in null()
1457 pub fn with_tag(&self, tag: usize) -> Shared<'g, T> { in with_tag()
1462 impl<T> From<*const T> for Shared<'_, T> { implementation
1484 impl<'g, T: ?Sized + Pointable> PartialEq<Shared<'g, T>> for Shared<'g, T> { implementation
1490 impl<T: ?Sized + Pointable> Eq for Shared<'_, T> {} implementation
1492 impl<'g, T: ?Sized + Pointable> PartialOrd<Shared<'g, T>> for Shared<'g, T> { implementation
1498 impl<T: ?Sized + Pointable> Ord for Shared<'_, T> { implementation
1504 impl<T: ?Sized + Pointable> fmt::Debug for Shared<'_, T> { implementation
1515 impl<T: ?Sized + Pointable> fmt::Pointer for Shared<'_, T> { implementation
1521 impl<T: ?Sized + Pointable> Default for Shared<'_, T> { implementation
1523 Shared::null() in default()
1529 use super::Shared;
1533 Shared::<i8>::null().with_tag(0); in valid_tag_i8()
1538 Shared::<i64>::null().with_tag(7); in valid_tag_i64()