mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-08 00:57:56 +02:00
from-and-into.md: mention losslessness and infallibility (#2281)
Fixes #2069.
This commit is contained in:
parent
991bd8ceb7
commit
3b349d830c
@ -4,7 +4,8 @@ minutes: 5
|
||||
|
||||
# `From` and `Into`
|
||||
|
||||
Types implement [`From`][1] and [`Into`][2] to facilitate type conversions:
|
||||
Types implement [`From`][1] and [`Into`][2] to facilitate type conversions.
|
||||
Unlike `as`, these traits correspond to lossless, infallible conversions.
|
||||
|
||||
```rust,editable
|
||||
fn main() {
|
||||
|
Loading…
Reference in New Issue
Block a user