Lines Matching defs:fn
86 pub const fn new(v: T) -> Self {
95 pub const fn as_ptr(&self) -> *mut T {
110 fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)?;
150 fn [< atomic_ $func >]($($arg: $arg_type,)*) $(-> $ret)? {
199 fn $func:ident [$($variant:ident),*]($($arg_sig:tt)*) $( -> $ret:ty)? {
223 fn $func:ident [$($variant:ident),*]($($arg_sig:tt)*) $( -> $ret:ty)? {
285 fn read[acquire](a: &AtomicRepr<Self>) -> Self {
291 fn set[release](a: &AtomicRepr<Self>, v: Self) {
305 fn xchg[acquire, release, relaxed](a: &AtomicRepr<Self>, v: Self) -> Self {
316 fn try_cmpxchg[acquire, release, relaxed](
333 fn add[](a: &AtomicRepr<Self>, v: Self::Delta) {
342 fn fetch_add[acquire, release, relaxed](a: &AtomicRepr<Self>, v: Self::Delta) -> Self {
347 fn fetch_sub[acquire, release, relaxed](a: &AtomicRepr<Self>, v: Self::Delta) -> Self {