# Subclassable

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

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

```rust
trait Subclassable<T>: ObjectType
```

Implemented by a class `C` for every class `T` that can derive from it:
`C`'s part of the virtual table with `T`'s overrides.

The table is a constant: every slot is known when the program is compiled
(the function of `T`, or the slot of the parent table that a member `T`
does not override forwards to), so a class's table is data in the
executable, not code that builds it at run time (#569).

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

## Trait implementations

- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)

## Availability

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