# HeatLand

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-livecharts/struct-heatland/

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

```rust
struct HeatLand
```

A weighted land of a heat land series (`HeatLand`): the key of a land of the map, its short
name (the ISO 3166-1 alpha-3 code in lower case on the world map), and its value.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/geo_models.rs#L20)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`with_value`](#function-with_value)
- [`entity_id`](#function-entity_id)
- [`snapshot`](#function-snapshot)
- [`name`](#function-name)
- [`set_name`](#function-set_name)
- [`value`](#function-value)
- [`set_numeric_value`](#function-set_numeric_value)
- [`name_property`](#function-name_property)
- [`value_property`](#function-value_property)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/geo_models.rs#L24)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<HeatLand>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/geo_models.rs#L24)

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

### construct

```rust
fn construct() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/geo_models.rs#L30)

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

### new

```rust
fn new() -> Ref<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/geo_models.rs#L36)

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

### with_value

```rust
fn with_value(name: impl Into<String>, value: f64) -> Ref<Self>
```

A land of the given key and value (`HeatLand(name, value)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/geo_models.rs#L40)

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

### entity_id

```rust
fn entity_id(self: &Self) -> u64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/geo_models.rs#L46)

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

### snapshot

```rust
fn snapshot(self: &Self) -> ferroui_livecharts::HeatLand
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/geo_models.rs#L49)

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

### name

```rust
fn name(self: &Self) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/geo_models.rs#L52)

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

### set_name

```rust
fn set_name(self: &Self, value: String)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/geo_models.rs#L55)

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

### value

```rust
fn value(self: &Self) -> f64
```

The weight of the land (`Value`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/geo_models.rs#L59)

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

### set_numeric_value

```rust
fn set_numeric_value(self: &Self, value: f64)
```

Sets `Value`; named apart from the property system's `set_value`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/geo_models.rs#L63)

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

### name_property

```rust
fn name_property() -> &'static StyledProperty<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/geo_models.rs#L67)

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

### value_property

```rust
fn value_property() -> &'static StyledProperty<f64>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.LiveCharts/geo_models.rs#L67)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<HeatLand>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)

## Availability

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