Crate once

Source

Macrosยง

  • This macro can be used to ensure that a function is called only once. It panics if the function is called a second time.