mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 09:08:12 +08:00
Massively reorganize and clean up the whole Rust codebase (#478)
* Massively reorganize and clean up the whole Rust codebase * Additional changes during code review
This commit is contained in:
+3
-14
@@ -1,24 +1,13 @@
|
||||
pub mod color;
|
||||
pub mod consts;
|
||||
pub mod document;
|
||||
pub mod error;
|
||||
pub mod intersection;
|
||||
pub mod layers;
|
||||
pub mod operation;
|
||||
pub mod response;
|
||||
|
||||
pub use intersection::Quad;
|
||||
pub use document::LayerId;
|
||||
pub use error::DocumentError;
|
||||
pub use operation::Operation;
|
||||
pub use response::DocumentResponse;
|
||||
|
||||
pub type LayerId = u64;
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum DocumentError {
|
||||
LayerNotFound(Vec<LayerId>),
|
||||
InvalidPath,
|
||||
IndexOutOfBounds,
|
||||
NotAFolder,
|
||||
NonReorderableSelection,
|
||||
NotAShape,
|
||||
InvalidFile(String),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user