These are chat archives for rust-lang/rust
pub fn captures<'t>(&self, text: &'t str) -> Option<Captures<'t>>
Returns the capture groups corresponding to the leftmost-FIRST match in text.
mod a;in main.rs, and then
use a;in b.rs.
pubfor b.rs to see them, though.
use foo::macro;instead of
mod a; mod b;in main.rs is a consequence of putting all your files on the same level. You could
mkdir b; mv b.rs b/mod.rs; mv a.rs b/and have
mod a;in b/mod.rs instead. You'd still have to be explicit with your
usestatements, though the paths would change then.