When using a
mod, you can definetely directly
use pub functions defined in the
mod, as long as you
use the mod.
However, it seems that there's no such a concept of static functions in Rust. Methods of a struct are actually the same, I think. Methods with
&self etc. are just a special case of other methods. So if you don't distinguish methods in such a way, the compiler won't know which methods you intend to use. For example, suppose we can do that, and we have Struct1 with
invoke(&self), Struct2 also with
invoke(&self). If we
use both struct like this
use Struct1::* and
use Struct2::*, then when you write
new() you intend to use?