# IPlatformHandle

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/platform/trait-iplatformhandle/

**trait** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
trait IPlatformHandle
```

Represents a platform-specific handle.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/i_platform_handle.rs#L4)

## Members

- [`handle`](#function-handle)
- [`handle_descriptor`](#function-handle_descriptor)
- [`as_any`](#function-as_any)
- [`equals`](#function-equals)

<a id="function-handle"></a>

### handle

```rust
fn handle(self: &Self) -> isize
```

Gets the handle (a native pointer or identifier).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/i_platform_handle.rs#L6)

<a id="function-handle_descriptor"></a>

### handle_descriptor

```rust
fn handle_descriptor(self: &Self) -> Option<&str>
```

Gets an optional string that describes what `handle` represents.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/i_platform_handle.rs#L9)

<a id="function-as_any"></a>

### as_any

```rust
fn as_any(self: &Self) -> &dyn Any
```

Lets backends recover the concrete handle type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/i_platform_handle.rs#L12)

<a id="function-equals"></a>

### equals

```rust
fn equals(self: &Self, other: &dyn IPlatformHandle) -> bool
```

Whether this handle is equal to `other`.

The default is identity: a handle is only equal to itself. Value-like
handles (see `PlatformHandle`) compare their
contents.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/i_platform_handle.rs#L19)

## Trait implementations

- [`IPlatformHandle`](/docs/0.5.0/api/ferroui-base/platform/trait-iplatformhandle/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
