overpass_lib/builder.rs
1mod filter;
2pub use filter::*;
3
4mod union;
5pub use union::*;
6
7mod query;
8pub use query::*;
9
10use std::borrow::Cow;
11use crate::Set;
12
13/// Internal trait to maintain consistency between builder types
14#[allow(unused)]
15pub(crate) trait Builder<'a>
16: Into<Set<'a>>
17+ Into<Cow<'a, Set<'a>>>
18+ IntoIterator<Item=Self>
19+ UnionWith<'a>
20+ ToQuery<'a> {
21}
22
23/// Provides methods to build all the various types of OverpassQL [Set]s.
24pub struct SetBuilder;