sitescraper/
parse.rs

1pub (in crate) mod fetch;
2pub (in crate) mod text;
3mod innerhtml;
4mod tagnames;
5
6pub trait Args {
7    fn extract(self) -> (&'static str, &'static str, &'static str);
8}
9
10
11impl Args for &'static str {
12    fn extract(self) -> (&'static str, &'static str, &'static str) {
13        (self, "", "")
14    }
15}
16
17impl Args for (&'static str, &'static str) {
18    fn extract(self) -> (&'static str, &'static str, &'static str) {
19        (self.0, self.1, "")
20    }
21}
22
23impl Args for (&'static str, &'static str, &'static str) {
24    fn extract(self) -> (&'static str, &'static str, &'static str) {
25        (self.0, self.1, self.2)
26    }
27}