RustArcStaticData<T> constructor
RustArcStaticData<T> ({
- required RustArcIncrementStrongCountFnType rustArcIncrementStrongCount,
- required RustArcDecrementStrongCountFnType rustArcDecrementStrongCount,
- required CrossPlatformFinalizerArg rustArcDecrementStrongCountPtr,
Constructs the data
Implementation
RustArcStaticData({
/// Directly calls `std::sync::Arc::increment_strong_count(ptr)`
required RustArcIncrementStrongCountFnType rustArcIncrementStrongCount,
/// Directly calls `std::sync::Arc::decrement_strong_count(ptr)`
required RustArcDecrementStrongCountFnType rustArcDecrementStrongCount,
/// The function pointer to `rustArcDecrementStrongCount`
required CrossPlatformFinalizerArg rustArcDecrementStrongCountPtr,
}) : _rustArcIncrementStrongCount = rustArcIncrementStrongCount,
super(
releaseFn: rustArcDecrementStrongCount,
releaseFnPtr: rustArcDecrementStrongCountPtr,
);