# ParseHelper

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

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

```rust
struct ParseHelper
```

Parses text into the values of the types of the framework that have a `Parse(string)`.

Deviation (DEVIATIONS.md, Behaviors): the reference keeps a table of the `Parse` methods of
40 framework types (brushes, colors, geometries, thicknesses, transforms, cursors, key
gestures, ..). Every one of them states its parser in its markup metadata (`parse:`), which is
what the text conversion of the untyped values uses, so the table is that conversion.

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

## Members

- [`invoke_parse`](#function-invoke_parse)

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

### invoke_parse

```rust
fn invoke_parse(s: &str, target_type: ValueType) -> Option<BoxedValue>
```

Parses `s` into a value of `target_type`; `None` when the type has no parser or the text
does not parse.

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

## 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`

## Availability

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