once 0.3.4

This crate provides an assert_has_not_been_called! macro that panics if the surrounding function is called twice. Useful for initialization functions.
Documentation
1
2
3
4
5
6
7
8
9
[package]
authors = ["Philipp Oppermann <dev@phil-opp.com>"]
description = "This crate provides an assert_has_not_been_called! macro that panics if the surrounding function is called twice. Useful for initialization functions."
documentation = "https://phil-opp.rustdocs.org/once/index.html"
keywords = ["once", "called", "no_std"]
license = "Apache-2.0/MIT"
name = "once"
repository = "https://github.com/phil-opp/rust-once"
version = "0.3.4"