[Beginner][Embedded] Understanding the usage of Traits and Errors in a crate and what it means

⚓ Rust    📅 2026-06-14    👤 surdeus    👁️ 2      

surdeus

Hi I'm a beginner working on a rp235x-hal project that also uses this tmc2209-uart crate on crates.io .

I have managed to simplify the library to 3 files with the basic barebones which is slightly modified to make it simpler.

I would be grateful if y'all could explain exactly what all the trait implementations and generic parts do and how they do this. I am especially confused about the Errors and how they get mapped etc, because I have been trying to replace the generic U with a rp235x-hal uart peripheral type.

Thank You

17 posts - 2 participants

Read full topic

🏷️ Rust_feed