refactor: reduce coupling

This commit is contained in:
2025-07-28 21:37:27 +08:00
parent 78e3c5a26e
commit 7afb2a7b1c
53 changed files with 2964 additions and 3444 deletions

View File

@@ -0,0 +1,27 @@
// TODO: Contextful String
pub struct StringContext {
context: Vec<()>,
}
impl StringContext {
pub fn new() -> StringContext {
StringContext {
context: Vec::new(),
}
}
}
pub struct ContextfulString {
string: String,
context: StringContext,
}
impl ContextfulString {
pub fn new(string: String) -> ContextfulString {
ContextfulString {
string,
context: StringContext::new(),
}
}
}