#[repr(transparent)]
pub struct RefCount(_);
Expand description
A thread-safe reference count for use with COM/HSTRING implementations.
pub fn new(count: u32) -> Self
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
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.