# TypeSystem

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-build/enum-typesystem/

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

```rust
enum TypeSystem
```

The type system the documents of a build are compiled against (`Build::type_system`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/lib.rs#L265)

## Members

- [`Runtime`](#variant-runtime)
- [`Model`](#variant-model)

<a id="variant-runtime"></a>

### Runtime

```rust
Runtime
```

The run-time type system: the types the build script registered in its process. The
script links the crates whose types its documents name, and cannot compile a
document that names a type of the crate it builds. Only with the feature
`runtime-host` of this crate, which links the XAML runtime library and the
controls; without it a build that compiles documents against this type system
fails with an error that says so.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/lib.rs#L273)

<a id="variant-model"></a>

### Model

```rust
Model
```

The build-time type system over the type models (docs/porting/xaml.md, 9.5): the
model of the crate, scanned from its sources, and the models of the crates it
depends on, read from their `.xamlmeta`. The script links no crate for its types
and compiles the documents of the classes of the crate (`XamlGroup::class_document`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Build.Tasks/lib.rs#L278)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`

## Availability

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