From 2f251facf156b6c89e6be3ba690261556baa02fa Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 24 Feb 2026 12:33:51 +0800 Subject: Implement SheetSystem core library Add IndexSource type for resource addressing and implement mapping system with LocalMapping, Mapping, and MappingBuf types. Create Sheet and SheetData structs for managing sheet data with editing capabilities. Implement binary format serialization/deserialization with reader and writer modules. Add constants for file format layout and comprehensive test suite for roundtrip verification. --- systems/sheet/src/mapping/error.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 systems/sheet/src/mapping/error.rs (limited to 'systems/sheet/src/mapping/error.rs') diff --git a/systems/sheet/src/mapping/error.rs b/systems/sheet/src/mapping/error.rs new file mode 100644 index 0000000..4fb3550 --- /dev/null +++ b/systems/sheet/src/mapping/error.rs @@ -0,0 +1,5 @@ +#[derive(Debug, thiserror::Error)] +pub enum ParseMappingError { + #[error("Mapping information is invalid and cannot be safely converted to LocalMapping")] + InvalidMapping, +} -- cgit