Searched refs:AtomicType (Results 1 – 3 of 3) sorted by relevance
52 pub struct Atomic<T: AtomicType>(AtomicRepr<T::Repr>);55 unsafe impl<T: AtomicType> Sync for Atomic<T> {}111 pub unsafe trait AtomicType: Sized + Send + Copy { interface124 pub unsafe trait AtomicAdd<Rhs = Self>: AtomicType {130 const fn into_repr<T: AtomicType>(v: T) -> T::Repr { in into_repr()140 const unsafe fn from_repr<T: AtomicType>(r: T::Repr) -> T { in from_repr()145 impl<T: AtomicType> Atomic<T> {248 impl<T: AtomicType> Atomic<T>311 impl<T: AtomicType + core::fmt::Debug> core::fmt::Debug for Atomic<T>320 impl<T: AtomicType> Atomic<T>[all …]
10 unsafe impl super::AtomicType for i32 {23 unsafe impl super::AtomicType for i64 {63 unsafe impl super::AtomicType for isize {76 unsafe impl super::AtomicType for u32 {89 unsafe impl super::AtomicType for u64 {102 unsafe impl super::AtomicType for usize {
10 use crate::sync::atomic::{Atomic, AtomicBasicOps, AtomicType, Relaxed};175 impl<T: AtomicType + FromStr> Reader for Atomic<T>