@@ -237,11 +237,16 @@ impl AtomicBool {
237
237
238
238
/// Loads a value from the bool.
239
239
///
240
- /// `load` takes an `Ordering` argument which describes the memory ordering of this operation.
240
+ /// `load` takes an [`Ordering`] argument which describes the memory ordering
241
+ /// of this operation.
241
242
///
242
243
/// # Panics
243
244
///
244
- /// Panics if `order` is `Release` or `AcqRel`.
245
+ /// Panics if `order` is [`Release`] or [`AcqRel`].
246
+ ///
247
+ /// [`Ordering`]: enum.Ordering.html
248
+ /// [`Release`]: enum.Ordering.html#variant.Release
249
+ /// [`AcqRel`]: enum.Ordering.html#variant.Release
245
250
///
246
251
/// # Examples
247
252
///
@@ -260,7 +265,10 @@ impl AtomicBool {
260
265
261
266
/// Stores a value into the bool.
262
267
///
263
- /// `store` takes an `Ordering` argument which describes the memory ordering of this operation.
268
+ /// `store` takes an [`Ordering`] argument which describes the memory ordering
269
+ /// of this operation.
270
+ ///
271
+ /// [`Ordering`]: enum.Ordering.html
264
272
///
265
273
/// # Examples
266
274
///
@@ -286,7 +294,10 @@ impl AtomicBool {
286
294
287
295
/// Stores a value into the bool, returning the old value.
288
296
///
289
- /// `swap` takes an `Ordering` argument which describes the memory ordering of this operation.
297
+ /// `swap` takes an [`Ordering`] argument which describes the memory ordering
298
+ /// of this operation.
299
+ ///
300
+ /// [`Ordering`]: enum.Ordering.html
290
301
///
291
302
/// # Examples
292
303
///
@@ -309,8 +320,10 @@ impl AtomicBool {
309
320
/// The return value is always the previous value. If it is equal to `current`, then the value
310
321
/// was updated.
311
322
///
312
- /// `compare_and_swap` also takes an `Ordering` argument which describes the memory ordering of
313
- /// this operation.
323
+ /// `compare_and_swap` also takes an [`Ordering`] argument which describes the memory
324
+ /// ordering of this operation.
325
+ ///
326
+ /// [`Ordering`]: enum.Ordering.html
314
327
///
315
328
/// # Examples
316
329
///
@@ -339,10 +352,15 @@ impl AtomicBool {
339
352
/// The return value is a result indicating whether the new value was written and containing
340
353
/// the previous value. On success this value is guaranteed to be equal to `current`.
341
354
///
342
- /// `compare_exchange` takes two `Ordering` arguments to describe the memory ordering of this
343
- /// operation. The first describes the required ordering if the operation succeeds while the
344
- /// second describes the required ordering when the operation fails. The failure ordering can't
345
- /// be `Release` or `AcqRel` and must be equivalent or weaker than the success ordering.
355
+ /// `compare_exchange` takes two [`Ordering`] arguments to describe the memory
356
+ /// ordering of this operation. The first describes the required ordering if the
357
+ /// operation succeeds while the second describes the required ordering when the
358
+ /// operation fails. The failure ordering can't be [`Release`] or [`AcqRel`] and must
359
+ /// be equivalent or weaker than the success ordering.
360
+ ///
361
+ /// [`Ordering`]: enum.Ordering.html
362
+ /// [`Release`]: enum.Ordering.html#variant.Release
363
+ /// [`AcqRel`]: enum.Ordering.html#variant.Release
346
364
///
347
365
/// # Examples
348
366
///
@@ -387,11 +405,15 @@ impl AtomicBool {
387
405
/// return value is a result indicating whether the new value was written and containing the
388
406
/// previous value.
389
407
///
390
- /// `compare_exchange_weak` takes two `Ordering` arguments to describe the memory
408
+ /// `compare_exchange_weak` takes two [ `Ordering`] arguments to describe the memory
391
409
/// ordering of this operation. The first describes the required ordering if the operation
392
410
/// succeeds while the second describes the required ordering when the operation fails. The
393
- /// failure ordering can't be `Release` or `AcqRel` and must be equivalent or weaker than the
394
- /// success ordering.
411
+ /// failure ordering can't be [`Release`] or [`AcqRel`] and must be equivalent or
412
+ /// weaker than the success ordering.
413
+ ///
414
+ /// [`Ordering`]: enum.Ordering.html
415
+ /// [`Release`]: enum.Ordering.html#variant.Release
416
+ /// [`AcqRel`]: enum.Ordering.html#variant.Release
395
417
///
396
418
/// # Examples
397
419
///
0 commit comments