Rust: Assertions in API doc?

Burdette Lamar - May 14 '22 - - Dev Community

I've looked a bit at the API documentation for Rust. I was surprised to see that very often the documentation for a method uses one or more assertions about the returned value, instead of showing the returned value itself.

This contrasts sharply with corresponding documentation for other languages. Does anyone know the motivation for this?

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player