# FerroUriTypeConverter

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-markup-xaml/converters/struct-ferrouritypeconverter/

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

```rust
struct FerroUriTypeConverter
```

Converts text to a URI. A path that starts with `/` is a relative URI,
never a file URI.

A URI has three Rust forms, `Uri`, `UriRef` and `url::Url` (C5 of #423): the
converter converts text to a `Uri`, and a URI or text to a `UriRef` or a
`Url` (`convert_to`), where a relative reference
is not a `Url` and a text the URL parser rejects is neither (section 3.5 of
docs/idiomatic-rust-signatures.md).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/converters/ferro_uri_type_converter.rs#L20)

## Members

- [`new`](#function-new)
- [`as_type_converter`](#function-as_type_converter)

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

### new

```rust
fn new() -> ::std::rc::Rc<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/converters/ferro_uri_type_converter.rs#L117)

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

### as_type_converter

```rust
fn as_type_converter(self: &::std::rc::Rc<Self>) -> ::std::rc::Rc<dyn $crate::converters::TypeConverter>
```

The converter as the type converter contract.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/converters/ferro_uri_type_converter.rs#L117)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`TypeConverter`](/docs/0.5.0/api/ferroui-markup-xaml/converters/trait-typeconverter/)
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- `PartialEq`

## Availability

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