# LayoutPlacement

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer-tools/struct-layoutplacement/

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

```rust
struct LayoutPlacement
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout_helpers.rs#L125)

## Members

- [`container`](#struct_field-container)
- [`index`](#struct_field-index)
- [`attributes`](#struct_field-attributes)
- [`bounds`](#struct_field-bounds)
- [`description`](#struct_field-description)
- [`rejection`](#struct_field-rejection)
- [`rejected`](#function-rejected)
- [`validate`](#function-validate)

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

### container

```rust
container: ferroui_designer_core::NodeId
```

Actual Children/Content/Child AST container, not necessarily the visual panel node.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout_helpers.rs#L127)

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

### index

```rust
index: usize
```

Element insertion boundary in the original AST, before removing `dragged_nodes`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout_helpers.rs#L129)

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

### attributes

```rust
attributes: Vec<(String, String)>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout_helpers.rs#L130)

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

### bounds

```rust
bounds: crate::Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout_helpers.rs#L131)

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

### description

```rust
description: String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout_helpers.rs#L132)

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

### rejection

```rust
rejection: Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout_helpers.rs#L133)

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

### rejected

```rust
fn rejected(context: &LayoutContext<'_>, panel: NodeId, reason: impl Into<String>) -> Result<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout_helpers.rs#L136)

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

### validate

```rust
fn validate(self: &Self) -> Result<()>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer.Tools/layout_helpers.rs#L151)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `DeserializeOwned`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Serialize`
- `Deserialize<'de>`

## Availability

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