mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 15:38:48 +00:00
Update homework 1 and 2
This commit is contained in:
@@ -16,3 +16,7 @@ pub trait WriteString {
|
||||
pub trait WriteOp {
|
||||
fn write_operation(&self) -> String;
|
||||
}
|
||||
|
||||
pub fn write<T: WriteLine>(t: &T, write: &mut dyn Write) -> Result<()> {
|
||||
t.write_line(0, write)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user