Sorry, the inner module is not pub, the trait inside it is.
-
-
Replying to @seanmonstar @rustlang
So the problem is that other modules in the *crate* need access. I can't just make it private to the parent module.
1 reply 0 retweets 0 likes -
This is why I ended up with two parallel hierarchies: the crate-internal one and the public one.
1 reply 0 retweets 0 likes -
Which is suuuuuuch a pain to work with.
1 reply 0 retweets 1 like -
Replying to @littlecalculist @rustlang
Link? I think we can make it better :)
1 reply 0 retweets 1 like -
Replying to @seanmonstar @rustlang
See Scope and ScopeInternal in https://github.com/neon-bindings/neon/blob/master/src/internal/scope.rs …
1 reply 0 retweets 0 likes -
The internal methods (e.g. .isolate()) are used in non nested modules like js::class: https://github.com/neon-bindings/neon/blob/master/src/internal/js/class.rs …
2 replies 0 retweets 0 likes -
Replying to @littlecalculist @rustlang
Ah, so you have a trait, and wish that only some methods were public?
1 reply 0 retweets 0 likes -
Replying to @seanmonstar @rustlang
Basically. I think Niko just suggested a workaround that might work:
1 reply 0 retweets 0 likes -
8:43 AM <nmatsakis> `pub(crate) mod internal { use super::*; pub trait Foo { .. } }` really
2 replies 0 retweets 0 likes
Ya, that's the same pattern I said :)
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.