Docs.rs
rustpython-common-0.6.0
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module refcount
rustpython_
common
0.6.0
Module refcount
Module Items
Structs
Functions
In crate rustpython_
common
rustpython_common
Module
refcount
Copy item path
Source
Structs
§
RefCount
Reference count using state layout with LEAKED and IMMORTAL support.
Functions
§
flush_
deferred_
drops
Flush all deferred drop operations. This is automatically called when exiting a deferred context.
try_
defer_
drop
Try to defer a drop-related operation. If inside a deferred context, the operation is queued. Otherwise, it executes immediately.
with_
deferred_
drops
Execute a function within a deferred drop context. Any calls to
try_defer_drop
within this context will be queued and executed when the context exits (even on panic).