Where is the implementation of Display trait for &str

Viewed 89

I know that str implements the trait Display. However, It is said that &str also implements this trait.

I wanna inspect the implementation detail of Display trait for &str, but I searched the resource code base of Rust and didn't find it. It doesn't exist in the std::str or the std::fmt::Display crates.

Maybe I had miss something I didn't realize. Can anyone give me some clue about where to find it?

2 Answers
Related