refactor: reduce coupling
This commit is contained in:
27
evaluator/nixjit_eval/src/value/string.rs
Normal file
27
evaluator/nixjit_eval/src/value/string.rs
Normal 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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user