diff options
author | Martin Fischer <martin@push-f.com> | 2023-08-16 09:45:18 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-08-19 13:41:55 +0200 |
commit | 65aca9cbf0318bd3a2f936641b4f5bc3729c98c2 (patch) | |
tree | 3bf6ae3ea03c1f377e9b4bd6fd7d6af99fbddc5a /src/lib.rs | |
parent | 0f460c2e77f450a2bac68eec97b2c62aa33c0495 (diff) |
break!: introduce AttributeMap
This has a number of benefits:
* it hides the implementation of the map
* it hides the type used for the map values
(which lets us e.g. change name_span to name_offset while still
being able to provide a convenient `Attribute::name_span` method.)
* it lets us provide convenience impls for the map
such as `FromIterator<(String, String)>`
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -3,7 +3,7 @@ #![forbid(unsafe_code)] #![doc = include_str!("../README.md")] -mod attr; +pub mod attr; mod emitter; mod entities; mod error; @@ -16,7 +16,6 @@ mod utils; #[cfg(feature = "integration-tests")] pub use utils::State as InternalState; -pub use attr::Attribute; pub use emitter::{Comment, DefaultEmitter, Doctype, Emitter, EndTag, StartTag, Token}; pub use error::Error; pub use tokenizer::{State, Tokenizer}; |