Struct windows::RefCount[][src]

#[repr(transparent)]
pub struct RefCount(_);
Expand description

A thread-safe reference count for use with COM/HSTRING implementations.

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.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.