codama-nodes 0.10.0

Node specifications and helpers for the Codama standard
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::InstructionLifecycle;

// The spec doesn't carry a notion of "default variant", so the
// generated `InstructionLifecycle` enum has no `#[derive(Default)]`.
// The default member is a Rust-side choice and lives here.
#[allow(clippy::derivable_impls)]
impl Default for InstructionLifecycle {
    fn default() -> Self {
        InstructionLifecycle::Live
    }
}