mirror mention of intent of From
This commit is contained in:
parent
ddabe0775c
commit
9054fbb03a
1 changed files with 2 additions and 1 deletions
|
|
@ -300,7 +300,8 @@ pub trait Into<T>: Sized {
|
|||
/// that encapsulate multiple error types. See the "Examples" section and [the book][book] for more
|
||||
/// details.
|
||||
///
|
||||
/// **Note: This trait must not fail**. If the conversion can fail, use [`TryFrom`].
|
||||
/// **Note: This trait must not fail**. The `From` trait is intended for perfect conversions.
|
||||
/// If the conversion can fail or is not perfect, use [`TryFrom`].
|
||||
///
|
||||
/// # Generic Implementations
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue