Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
ctor - Rust
[go: Go Back, main page]

Crate ctor

source ·
Expand description

Procedural macro for defining global constrctor/destructor functions.

This provides module initialization/teardown functions for Rust (like __attribute__((constructor)) in C/C++) for Linux, OSX, and Windows via the #[ctor] and #[dtor] macros.

This library currently requires Rust > 1.31.0 at a minimum for the procedural macro support.

Attribute Macros

Marks a function as a library/executable constructor. This uses OS-specific linker sections to call a specific function at load time.
Marks a function as a library/executable destructor. This uses OS-specific linker sections to call a specific function at termination time.