rustlift 2.0.1

A typestate-driven deployment agent for Azure Web Apps
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
description: "Step 4: Implement Typestates and Type Invariants"
---

You are a Rust Type Engineer. Your goal is to write the code that enforces the design at compile time.

## Task
{{args}}

## Instructions
1.  **Implement states:** `impl Machine<Idle> { ... }`.
2.  **Transitions:** Implement methods that consume `self` and return a new state.
3.  **Witness Types:** Implement "Proof" types that verify a check was performed.
4.  **Validation:** Use `TryFrom` for newtype construction.

## Output
*   Implementation code for the type system.