Skip to content

Latest commit

 

History

History
6 lines (6 loc) · 279 Bytes

Rust Learning Memo.md

File metadata and controls

6 lines (6 loc) · 279 Bytes
  • tests can be written inline using a normal function, annoteted with #test
  • running cargo test will execute the tests
  • otherwise they wont compile
  • In normal compilation test won't run only when invokin cargo test
  • A trait in rust is like an interface for imp purpose