Skip to content

Commit 63ae52d

Browse files
committed
Docs: Updating old term "object safe" to "dyn compatible"
The concept "dyn compatibility" was formerly known as "object safety". Making sure also the new terminology is used in the documentation.
1 parent 690e632 commit 63ae52d

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

src/convenience_traits.rs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ impl<E: Clone> Clone for BoxShrink<E> {
4444
}
4545
}
4646

47-
/// Non-object-safe trait for providing generator zipping.
47+
/// Not dyn compatible (a.k.a. object safe) trait for providing generator
48+
/// zipping.
4849
///
4950
/// The [ZipWithGen::zip] extension method cannot be implemented directly on
5051
/// [Gen] object trait, since generic method in respect to other type `E1`, does
@@ -191,7 +192,8 @@ impl<E0: Clone + 'static> ZipWithGen<E0> for dyn Gen<E0> {
191192
}
192193
}
193194

194-
/// Non-object-safe trait for providing generator mapping.
195+
/// Not dyn compatible (a.k.a. object safe) trait for providing generator
196+
/// mapping.
195197
pub trait MapWithGen<E0>
196198
where
197199
E0: Clone + 'static,
@@ -219,7 +221,8 @@ impl<E0: Clone + 'static> MapWithGen<E0> for dyn Gen<E0> {
219221
}
220222
}
221223

222-
/// Non-object-safe trait for providing example filtering in generator.
224+
/// Not dyn compatible (a.k.a. object safe) trait for providing example
225+
/// filtering in generator.
223226
pub trait FilterWithGen<E>
224227
where
225228
E: Clone + 'static,
@@ -239,7 +242,8 @@ impl<E: Clone + 'static> FilterWithGen<E> for dyn Gen<E> {
239242
}
240243
}
241244

242-
/// Non-object-safe trait for providing shrinker zipping.
245+
/// Not dyn compatible (a.k.a. object safe) trait for providing shrinker
246+
/// zipping.
243247
pub trait ZipWithShrink<E0>
244248
where
245249
E0: Clone + 'static,
@@ -259,7 +263,8 @@ impl<E0: Clone + 'static> ZipWithShrink<E0> for dyn Shrink<E0> {
259263
}
260264
}
261265

262-
/// Non-object-safe trait for providing shrinker mapping.
266+
/// Not dyn compatible (a.k.a. object safe) trait for providing shrinker
267+
/// mapping.
263268
pub trait MapWithShrink<E0>
264269
where
265270
E0: Clone + 'static,
@@ -287,7 +292,8 @@ impl<E0: Clone + 'static> MapWithShrink<E0> for dyn Shrink<E0> {
287292
}
288293
}
289294

290-
/// Non-object-safe trait for providing shrinker filtering.
295+
/// Not dyn compatible (a.k.a. object safe) trait for providing shrinker
296+
/// filtering.
291297
pub trait FilterWithShrink<E>
292298
where
293299
E: Clone + 'static,

0 commit comments

Comments
 (0)