Pauan / rust-dominator

Zero-cost ultra-high-performance declarative DOM library using FRP signals for Rust!
MIT License
960 stars 62 forks source link

Make methods less internal #53

Open iMplode-nZ opened 2 years ago

iMplode-nZ commented 2 years ago

This pull request makes quite a lot of __internal_ things on DomBuilder, StylesheetBuilder, ClassBuilder visible from outside.

Why do I want this?

This pull request also adds a finish() method to DomBuilder, in order to make its api more similar to StylesheetBuilder and ClassBuilder, which both are given finish() methods.

dakom commented 2 years ago

fwiw I hit a similar constraint when trying to add additional event macros: https://github.com/dakom/dominator-helpers/blob/e1ec52fe658dae70c28f1db10dd89ce47b80b607/src/events.rs#L4