pub unsafe trait NodeBase:
AtomicRefCounted
+ Eq
+ Hash {
// Required method
fn load_rc(&self, order: Ordering) -> usize;
// Provided method
fn needs_drop() -> bool { ... }
}Expand description
Base traits to be satisfied by inner nodes for oxidd-manager. This does not
include the InnerNode trait.
§Safety
- The reference counter must be initialized to 2.
Self::load_rc()loads the reference count with the specified load order.
Required Methods§
Provided Methods§
Sourcefn needs_drop() -> bool
fn needs_drop() -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.