These are chat archives for rust-lang/rust

11th
Jan 2017
Peter Atashian
@retep998
Jan 11 2017 00:29
@ForsakenHarmony Yes --unpretty=expanded
Leah
@ForsakenHarmony
Jan 11 2017 00:40
@retep998 where will the output be?
Peter Atashian
@retep998
Jan 11 2017 00:52
@ForsakenHarmony stdout, so you have to redirect the output
Chris Natoli
@NatoliChris
Jan 11 2017 00:54

Hey all,
Sorry for such a nooby question..

I have two crates to use, A and B, both of them implement a Session module/struct that I need access to, is there a way I can do the following:

use A::Session
use B::Session

Then later on choose which one I am using, e.g.: `let mut foo = A::Session::new(……)

Appreciate any help :)

use as
but you can also just leave the use out
and just do let mut foo = A::Session::new(……)
Chris Natoli
@NatoliChris
Jan 11 2017 01:06
@ForsakenHarmony thanks! :)
Leah
@ForsakenHarmony
Jan 11 2017 01:06
np