Here is what I have in foo.rs
:
pub struct Foo {
// a few attributes
}
impl Foo {
// 20+ public functions
}
// 100+ tests
The file is too long (2000+ lines of code). How can I break it into files without changing the structure of the code: I want to still have one struct Foo
with many functions and many unit tests.