Lines Matching +full:test +full:- +full:loom
3 #[cfg(all(loom, any(test, feature = "loom")))]
6 pub use loom::sync::atomic::*;
9 pub(crate) use loom::{
15 use loom::alloc;
19 /// This is a version of `loom::alloc::Track` that adds a missing
26 pub fn new(value: T) -> Track<T> { in new()
32 pub fn get_ref(&self) -> &T { in get_ref()
38 pub fn get_mut(&mut self) -> &mut T { in get_mut()
44 pub fn into_inner(self) -> T { in into_inner()
50 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
56 fn default() -> Self { in default()
63 #[cfg(not(all(loom, any(feature = "loom", test))))]
86 pub fn new(data: T) -> UnsafeCell<T> { in new()
91 pub fn with<F, R>(&self, f: F) -> R in with()
93 F: FnOnce(*const T) -> R, in with()
99 pub fn with_mut<F, R>(&self, f: F) -> R in with_mut()
101 F: FnOnce(*mut T) -> R, in with_mut()
117 pub fn new(value: T) -> Track<T> { in new()
123 pub fn get_ref(&self) -> &T { in get_ref()
129 pub fn get_mut(&mut self) -> &mut T { in get_mut()
135 pub fn into_inner(self) -> T { in into_inner()