type-state-builder 0.5.1

Type-state builder pattern derive macro with compile-time safety and enhanced ergonomics.
Documentation
1
2
3
4
5
6
7
8
9
10
use type_state_builder::TypeStateBuilder;

#[derive(TypeStateBuilder)]
#[builder(const, impl_into)]
struct InvalidStruct {
    // This should be an error: const and impl_into are incompatible
    name: String,
}

fn main() {}