Lift the given inputs into a canonical `MemoryNode`, mapping a lift failure (missing `uid`, missing `memoryKind`, …) to a clean argument error.
(inputs: &MemLiftInputs)
| 112 | /// Lift the given inputs into a canonical `MemoryNode`, mapping a lift failure |
| 113 | /// (missing `uid`, missing `memoryKind`, …) to a clean argument error. |
| 114 | pub fn lift(inputs: &MemLiftInputs) -> CliResult<MemoryNode> { |
| 115 | lift_memory(&inputs.frontmatter, &inputs.body).map_err(|e| CliError::InvalidArgument { |
| 116 | message: format!("could not lift memory: {e}"), |
| 117 | }) |
| 118 | } |
| 119 | |
| 120 | /// Whether this is a freeform memory rather than a malformed canonical one. |
| 121 | /// |