1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
extern crate combine;
/// main object it can be convert from &str.
///
/// node expression must be comman or newline separated.
/// Currently it does not support any operations like (or, and, xor, substract)
/// Type of Error and Iterator could be change in the future.
///
/// # Examples
///
/// ```
/// use nodeagg::Nodeagg;
///
/// let hostnames : Vec<String> =
/// Nodeagg::try_from("node[01-02],node03").unwrap().iter().collect();
/// assert_eq!(hostnames, vec!["node01", "node02", "node03"]);
/// ```
///
/// Comemnt line must start with `#`.
///
/// ```
/// # use nodeagg::Nodeagg;
/// let hostnames : Vec<String> =
/// Nodeagg::try_from("node[01-02]
/// #node03
/// node04").unwrap().iter().collect();
/// assert_eq!(hostnames, vec!["node01", "node02", "node04"]);
/// ```
///
pub type Nodeagg = Nodeagg;