How to write one single From trait implementation for custom struct

I have both a simple Vector struct and a Matrix struct for which I have multiple From traits implemented. However, I am wondering whether (specifically for the Matrix struct) I can write one single From trait that covers all my requirements.

All details can be found here: Code shared from the Rust Playground · GitHub

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.