Crate once

Source

Macrosยง

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