diff options
| author | John Turner <jturner.usa@gmail.com> | 2025-10-29 12:50:07 +0000 |
|---|---|---|
| committer | John Turner <jturner.usa@gmail.com> | 2025-10-29 12:50:07 +0000 |
| commit | b5765118fead09f3501e99bcb4cc19496912040d (patch) | |
| tree | eaefc8fa107680ac4414c25d5637e9fffbefc324 /src/depend/mod.rs | |
| parent | bdd1188409947bb92910cbd5b1b7039ed805273a (diff) | |
| download | gentoo-utils-b5765118fead09f3501e99bcb4cc19496912040d.tar.gz | |
make depend::Expr generic over Parseables
Diffstat (limited to 'src/depend/mod.rs')
| -rw-r--r-- | src/depend/mod.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/depend/mod.rs b/src/depend/mod.rs index 9a7fb71..1d85005 100644 --- a/src/depend/mod.rs +++ b/src/depend/mod.rs @@ -1,4 +1,4 @@ -use crate::{atom::Atom, useflag::UseFlag}; +use crate::useflag::UseFlag; pub mod parsers; @@ -9,10 +9,10 @@ pub enum Conditional { } #[derive(Clone, Debug)] -pub enum Expr { - Atom(Atom), - AllOf(Vec<Expr>), - AnyOf(Vec<Expr>), - OneOf(Vec<Expr>), - ConditionalGroup(Conditional, Vec<Expr>), +pub enum Expr<T> { + Element(T), + AllOf(Vec<Self>), + AnyOf(Vec<Self>), + OneOf(Vec<Self>), + ConditionalGroup(Conditional, Vec<Self>), } |
