File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 7
7
//! - Implement the [`AsMut`] trait for cheap mutable-to-mutable conversions
8
8
//! - Implement the [`From`] trait for consuming value-to-value conversions
9
9
//! - Implement the [`Into`] trait for consuming value-to-value conversions to types
10
- //! outside the current crate
10
+ //! outside the current crate
11
11
//! - The [`TryFrom`] and [`TryInto`] traits behave like [`From`] and [`Into`],
12
- //! but should be implemented when
13
- //! the conversion can fail.
12
+ //! but should be implemented when the conversion can fail.
14
13
//!
15
14
//! The traits in this module are often used as trait bounds for generic functions such that to
16
15
//! arguments of multiple types are supported. See the documentation of each trait for examples.
@@ -243,7 +242,6 @@ pub trait AsMut<T: ?Sized> {
243
242
/// Prefer using ```Into``` over ```From``` when specifying trait bounds on a generic function
244
243
/// to ensure that types that only implement ```Into``` can be used as well.
245
244
///
246
- ///
247
245
/// # Examples
248
246
///
249
247
/// [`String`] implements `Into<Vec<u8>>`:
You can’t perform that action at this time.
0 commit comments