57b2c6a135
Prepare for merge: Move all minidom-rs files into minidom-rs/
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-10-18 14:27:53 +02:00
Emmanuel Gil Peyrot
f68826057b
Fix clippy lints
2019-02-21 21:06:23 +01:00
lumi
f0dd03d633
Split Node
off into its own module: node.rs
2018-12-23 15:59:13 +01:00
lumi
c5c8dee20a
Get rid of IntoElements
, replace it with Into<Node>
and <T: Into<Node> IntoIterator<Item = T>
. This is a backwards-incompatible change, but should require minimal changes.
...
Doing this splits the `append` method in `ElementBuilder` into two methods. `append` now appends exactly one node, while `append_all` appends an iterator of nodes.
Add `remove_child`, which removes the first child that has a specific name and namespace, then returns it if it exists.
Add a lot of convenience methods on `Node`: `as_text_mut`, `as_element_mut`, `into_text`, `into_element`.
2018-12-23 15:42:50 +01:00
Emmanuel Gil Peyrot
7ed4be96eb
impl IntoAttributeValue for std::net::IpAddr
2018-05-29 16:03:44 +02:00
Emmanuel Gil Peyrot
b49ea5175d
implement IntoElements on Into<Element> instead of Element
2017-08-27 01:36:18 +01:00
lumi
d6a9e6e9ea
implement ToAttributeValue on integral types, bump version
2017-05-28 00:25:57 +02:00
Emmanuel Gil Peyrot
638866fa4c
implement IntoAttributeValue for u32, u16 and u8
2017-05-27 22:56:17 +01:00
Emmanuel Gil Peyrot
d63c7b991d
implement IntoAttributeValue for usize
2017-05-27 22:45:22 +01:00
lumi
dbcbe7cd9b
make clippy happy
2017-05-22 18:45:43 +02:00
lumi
3223fc11fe
this will already get auto-dereferenced
2017-05-22 16:15:26 +02:00
lumi
49d25968cb
no need to clone that
2017-05-22 16:15:04 +02:00
Emmanuel Gil Peyrot
f4e5f5380e
implement IntoElements and IntoAttributeValue for &String
2017-05-21 21:07:37 +01:00
lumi
7c04aff416
overhauling the library, made tests pass
2017-03-08 20:34:17 +01:00