RustArc<T> class
The Rust std::sync::Arc
on the Dart side.
- Implemented types
Constructors
-
RustArc.fromRaw({required int ptr, required int externalSizeOnNative, required RustArcStaticData<
T> staticData}) -
Mimic
std::sync::Arc::from_raw
Properties
- externalSizeOnNative → int
-
The code is used only internally and is not a public API. The comment exists mainly to satisfy the linter.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Check whether the resource is disposed.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- staticData → DroppableStaticData
-
See comments in
DroppableStaticData
for requirements.no setter
Methods
-
clone(
) → RustArc< T> -
Mimic
std::sync::Arc::clone
-
dangerousReadInternalPtr(
) → PlatformPointer -
NEVER read it directly outside subclasses,
otherwise all encapsulation breaks down.
inherited
-
dispose(
) → void -
Disposes the resource.
inherited
-
forget(
) → void -
Mimic
std::mem::forget
inherited -
intoRaw(
) → int -
Mimic
std::sync::Arc::into_raw
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited