# use-layer
Layer and z-order semantics primitives for RustUse UI.
## Purpose
`use-layer` models common layer roles, numeric layer indices, and simple layer stacks. It provides ordering helpers without binding to CSS, windows, canvases, or a renderer.
## Example
```rust
use use_layer::{LayerIndex, LayerRole, LayerStack};
let stack = LayerStack::new(vec![LayerRole::Base, LayerRole::Popover, LayerRole::Modal]);
assert!(LayerRole::Modal.sits_above(LayerRole::Popover));
assert!(LayerIndex::new(20) > LayerIndex::new(10));
assert_eq!(stack.top(), Some(LayerRole::Modal));
```
## Main types
- `LayerRole`
- `LayerIndex`
- `LayerStack`
## Facade relationship
The `use-ui` facade exposes this crate as `use_ui::layer` when the `layer` or `full` feature is enabled.