# ModelMethod

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-build/type_system/struct-modelmethod/

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

```rust
struct ModelMethod
```

A method projected from the model.

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

## Members

- [`source`](#function-source)
- [`is_abstract`](#function-is_abstract)
- [`rust`](#function-rust)

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

### source

```rust
fn source(self: &Self) -> &MemberSource
```

The declaration the method is the projection of.

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

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

### is_abstract

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

Whether the method is an abstract member of a runtime library type: a call is
dispatched to the member of the same name of the type of the instance.

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

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

### rust

```rust
fn rust(self: &Self) -> &MemberRust
```

The Rust side of the method.

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

## Trait implementations

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

## Availability

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