Kriskras99 commented on PR #423: URL: https://github.com/apache/avro-rs/pull/423#issuecomment-3789540253
The nice thing about `TryFrom` is that you can use it as a trait bound: ```rust RecordBuilder::name(s: impl TryInto<Name>) ``` Which means you can supply a `Name`, `&str` or `String` (and any user types that implement `TryFrom<T> for Name`) to that function and they'll all work. `FromStr` is less useful, its main usage is allowing `let name: Name = "some.name".parse()?` to work. So in my opinion `TryFrom` is way more useful than `FromStr`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
