Refactored the "helpers" so that they use a common Codec trait; this makes them composable as well.

This commit is contained in:
Werner Kroneman 2024-01-06 19:14:37 +01:00 committed by Link Mauve
commit 18cb6f6e2d
19 changed files with 285 additions and 222 deletions

View file

@ -6,7 +6,7 @@
use crate::ns;
use crate::util::error::Error;
use crate::util::helpers::PlainText;
use crate::util::text_node_codecs::{Codec, OptionalCodec, Text};
use crate::Element;
generate_attribute!(
@ -39,7 +39,7 @@ generate_element!(
],
text: (
/// Text to insert.
text: PlainText<Option<String>>
text: OptionalCodec<Text>
)
);