diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-07-31 14:45:04 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-07-31 15:22:40 +0100 |
| commit | 91860485774924e82da9b0774179d4c3c8da810a (patch) | |
| tree | e06f52f147502e80aea139c20adac706479cb7ea /patio-to-cranelift/src/patio/types.rs | |
| parent | 410fff7b7ecf6f36a0a46ab1d90553169e3728f1 (diff) | |
Use transient-0 instead of flatbuffersmain
Diffstat (limited to 'patio-to-cranelift/src/patio/types.rs')
| -rw-r--r-- | patio-to-cranelift/src/patio/types.rs | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/patio-to-cranelift/src/patio/types.rs b/patio-to-cranelift/src/patio/types.rs deleted file mode 100644 index 49bce09a..00000000 --- a/patio-to-cranelift/src/patio/types.rs +++ /dev/null @@ -1,39 +0,0 @@ -#[derive(Clone, Copy, Eq, PartialEq)] -pub(crate) enum PatioType { - Bool, - Byte, - DataPtr, - FunctionPtr, - Int, - Int32, -} - -#[derive(Clone, Debug, PartialEq)] -pub(crate) enum PatioDataLayout { - Array { - element: Box<PatioDataLayout>, - size: u32, - }, - Bool, - Byte, - DataPtr, - FunctionPtr, - Int, - Int32, - Struct { - elements: Vec<PatioDataLayout>, - }, -} - -impl PatioDataLayout { - pub(crate) fn array(element: PatioDataLayout, size: u32) -> Self { - Self::Array { - element: Box::new(element), - size, - } - } - - pub(crate) fn struct_(elements: Vec<PatioDataLayout>) -> Self { - Self::Struct { elements } - } -} |
