RustArcStaticData<T> constructor

RustArcStaticData<T>({
  1. required RustArcIncrementStrongCountFnType rustArcIncrementStrongCount,
  2. required RustArcDecrementStrongCountFnType rustArcDecrementStrongCount,
  3. 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,
      );