diff options
author | HampusM <hampus@hampusmat.com> | 2023-05-09 20:38:46 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-05-11 21:05:53 +0200 |
commit | 8818a94ad79ebdebdf4c7819bd42e363c63bd630 (patch) | |
tree | 0a757ff271bf9d4d15be1a3a947f58b613961cbf /src/lib.rs | |
parent | e762babd9e69400ccd178ba8946168640093eb63 (diff) |
feat: add optional deserializer generics static bounds
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,6 +1,6 @@ //! XML is awful. #![deny(clippy::all, clippy::pedantic, unsafe_code, missing_docs)] -use crate::deserializer::{Deserializer, Error as DeserializerError}; +use crate::deserializer::{Deserializer, Error as DeserializerError, MaybeStatic}; use crate::tagged::TagStart; pub mod attribute; @@ -8,9 +8,10 @@ pub mod deserializer; pub mod tagged; mod event; +mod util; /// Trait implemented by types that want to be deserializable from tagged XML elements. -pub trait DeserializeTagged: Sized +pub trait DeserializeTagged: Sized + MaybeStatic { /// Error type. type Error: std::error::Error + Send + Sync + 'static; |