# MethodDescriptor

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactivity/helpers/struct-methoddescriptor/

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

```rust
struct MethodDescriptor
```

A method found by a [`MethodHelper`](/docs/0.5.0/api/ferroui-xaml-interactivity/helpers/struct-methodhelper/).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/helpers/method_helper.rs#L180)

## Members

- [`new`](#function-new)
- [`method_info`](#function-method_info)
- [`parameters`](#function-parameters)
- [`parameter_count`](#function-parameter_count)
- [`second_parameter_type_info`](#function-second_parameter_type_info)

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

### new

```rust
fn new(method_info: &'static MarkupMethod) -> Self
```

Describes `method_info`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/helpers/method_helper.rs#L186)

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

### method_info

```rust
fn method_info(self: &Self) -> &'static MarkupMethod
```

The method.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/helpers/method_helper.rs#L191)

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

### parameters

```rust
fn parameters(self: &Self) -> Vec<ValueType>
```

The types of the parameters of the method.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/helpers/method_helper.rs#L196)

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

### parameter_count

```rust
fn parameter_count(self: &Self) -> usize
```

The number of parameters of the method.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/helpers/method_helper.rs#L201)

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

### second_parameter_type_info

```rust
fn second_parameter_type_info(self: &Self) -> Option<ValueType>
```

The type of the second parameter, if the method has two.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactivity/helpers/method_helper.rs#L206)

## Trait implementations

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

## Availability

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