# MarkupEmit

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/metadata/struct-markupemit/

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

```rust
struct MarkupEmit
```

A typed function the declaration forms generate for a declared member,
for the emitter of Rust source: an associated function of the declared
type (`#[doc(hidden)] pub fn __markup_get_Child(this: &Ref<Border>) -> ..`),
public wherever the type is, that calls the declared callable with
exactly the declared types. Generated code calls it by the public path
of the type and `function`, whatever form the callable has (a path or a
closure).

| Member | Function |
|---|---|
| property getter / setter | `__markup_get_<Name>(this: &This) -> T` / `__markup_set_<Name>(this: &This, value: T)` |
| static property getter / setter | `__markup_static_get_<Name>() -> T` / `__markup_static_set_<Name>(value: T)` |
| method (instance or static), in declaration order `n` | `__markup_<Name>_<n>([this: &This,] a0: A, ..) -> R` |
| constructor, in declaration order `n` | `__markup_new_<n>(a0: A, ..) -> T` |
| static field | `__markup_field_<Name>() -> T` |
| `Parse(string)` | `__markup_parse(text: String) -> Result<T, MarkupInvokeError>` |

A fallible member (`try`) returns `Result<T, MarkupInvokeError>`
([`markup_result`](/docs/0.5.0/api/ferroui-base/metadata/function-markup_result/) of the callable's result).

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

## Members

- [`function`](#struct_field-function)
- [`fallible`](#struct_field-fallible)

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

### function

```rust
function: &'static str
```

The name of the associated function.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/metadata/markup_type.rs#L660)

<a id="struct_field-fallible"></a>

### fallible

```rust
fallible: bool
```

Whether the function returns `Result<_, MarkupInvokeError>`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/metadata/markup_type.rs#L662)

## Trait implementations

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

## Availability

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