#[repr(transparent)]
pub struct RefCount(_);
Expand description
A thread-safe reference count for use with COM/HSTRING implementations.
Creates a new RefCount
with an initial value of 1
.
Increments the reference count, returning the new value.
Decrements the reference count, returning the new value.
This operation inserts an Acquire
fence when the reference count reaches zero.
This prevents reordering before the object is destroyed.
Returns the “default value” for a type. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.