docx_reader/reader/attributes/
mod.rs

1mod bool_value;
2mod border;
3mod id;
4mod indent;
5mod indent_level;
6pub(crate) mod line_spacing;
7mod name;
8mod val;
9mod width;
10
11pub use bool_value::*;
12pub use border::*;
13pub use id::*;
14pub use indent::*;
15pub use indent_level::*;
16pub use name::*;
17pub use val::*;
18pub use width::*;
19
20use xml::attribute::OwnedAttribute;
21
22pub fn read(attrs: &[OwnedAttribute], target: &str) -> Option<String> {
23	for a in attrs {
24		let local_name = &a.name.local_name;
25		if local_name == target {
26			return Some(a.value.to_owned());
27		}
28	}
29	None
30}