File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -349,23 +349,23 @@ impl<C: IntoAnyCalendar> Date<C> {
349
349
}
350
350
351
351
impl < A : AsCalendar > Date < A > {
352
- /// Wrap the calendar type in `Rc<T>`
352
+ /// Wrap the contained calendar type in `Rc<T>`, making it cheaper to clone.
353
353
///
354
354
/// Useful when paired with [`Self::to_any()`] to obtain a `Date<Rc<AnyCalendar>>`
355
355
#[ cfg( feature = "alloc" ) ]
356
356
pub fn into_ref_counted ( self ) -> Date < Rc < A > > {
357
357
Date :: from_raw ( self . inner , Rc :: new ( self . calendar ) )
358
358
}
359
359
360
- /// Wrap the calendar type in `Arc<T>`
360
+ /// Wrap the contained calendar type in `Arc<T>`, making it cheaper to clone in a thread-safe manner.
361
361
///
362
362
/// Useful when paired with [`Self::to_any()`] to obtain a `Date<Arc<AnyCalendar>>`
363
363
#[ cfg( feature = "alloc" ) ]
364
364
pub fn into_atomic_ref_counted ( self ) -> Date < Arc < A > > {
365
365
Date :: from_raw ( self . inner , Arc :: new ( self . calendar ) )
366
366
}
367
367
368
- /// Wrap the calendar type in `Ref<T>`
368
+ /// Wrap the calendar type in `Ref<T>`, making it cheaper to clone (by introducing a borrow)
369
369
///
370
370
/// Useful for converting a `&Date<C>` into an equivalent `Date<D>` without cloning
371
371
/// the calendar.
You can’t perform that action at this time.
0 commit comments