Skip to content

private type FactoryWidgets in public interface #159

Answered by AaronErhardt
uvizhe asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to use #[relm4::factory_prototype(pub)] to make the generated FactoryWidgets struct public.

Btw. this hasn't anything to do with Rust directly, but the macro generates the struct as not-public by default. And because the code generation is somewhat hidden, it's not easy to find this feature. It's documented in the book quite at the end, at least for the widget macro.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by uvizhe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants