# RxCacheSize

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/struct-rxcachesize/

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

```rust
struct RxCacheSize
```

The sizes of the caches of ReactiveUI (`RxCacheSize`): the memoizing caches of view location
and of the observation of properties.

Deviation (DEVIATIONS.md, ReactiveUI): the limits are per thread, as the caches that read
them are.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/rx_cache_size.rs#L28)

## Members

- [`small_cache_limit`](#function-small_cache_limit)
- [`big_cache_limit`](#function-big_cache_limit)
- [`initialize`](#function-initialize)

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

### small_cache_limit

```rust
fn small_cache_limit() -> usize
```

The limit of the small caches (`SmallCacheLimit`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/rx_cache_size.rs#L32)

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

### big_cache_limit

```rust
fn big_cache_limit() -> usize
```

The limit of the big caches (`BigCacheLimit`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/rx_cache_size.rs#L37)

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

### initialize

```rust
fn initialize(small_cache_limit: usize, big_cache_limit: usize)
```

Sets the limits unless they were set or read before (`Initialize`); the builder of the
application calls it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/rx_cache_size.rs#L43)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`

## Availability

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