new_from_files

This commit is contained in:
ryjm 2024-08-02 13:38:46 -04:00 committed by Edward Amsden
parent db30cf9208
commit d957982e5a

View File

@ -68,6 +68,13 @@ pub struct Newt {
}
impl Newt {
pub fn new_from_files(input: std::fs::File, output: std::fs::File) -> Newt {
Newt {
input,
output,
}
}
pub fn new() -> Newt {
Newt {
input: unsafe { std::fs::File::from_raw_fd(0) },