# BrowserAccessibility

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-browser/struct-browseraccessibility/

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

```rust
struct BrowserAccessibility
```

The accessibility tree of one view.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_accessibility.rs#L301)

## Members

- [`of`](#function-of)
- [`is_enabled`](#function-is_enabled)
- [`set_enabled`](#function-set_enabled)
- [`element_count`](#function-element_count)

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

### of

```rust
fn of(top_level: &Ref<TopLevel>) -> Option<Rc<BrowserAccessibility>>
```

The tree of the view of a top-level: an application that does not
keep its `FerroView` turns the mirror on or off
through it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_accessibility.rs#L370)

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

### is_enabled

```rust
fn is_enabled(self: &Self) -> bool
```

Whether the tree is mirrored into the page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_accessibility.rs#L377)

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

### set_enabled

```rust
fn set_enabled(self: &Self, enabled: bool)
```

Turns the mirror on (the whole tree is sent at the next frame) or
off (every element is removed and nothing is followed any more).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_accessibility.rs#L383)

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

### element_count

```rust
fn element_count(self: &Self) -> usize
```

The number of peers with an element in the page.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Browser/FerroUI.Browser/browser_accessibility.rs#L727)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Drop`
- `ErasedDestructor`
- `IntoEither`

## Availability

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