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
|
/*
This file is part of jellything (https://codeberg.org/metamuffin/jellything)
which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
Copyright (C) 2026 metamuffin <metamuffin.org>
*/
pub mod backends;
pub mod indices;
pub mod prefix_iterator;
pub mod table;
pub type Pad32 = u32;
use jellycommon::jellyobject::{Object, Tag, TypedTag};
enum Query<'a> {
MatchStr(Match<'a, &'a str>),
MatchF64(Match<'a, f64>),
MatchU64(Match<'a, u64>),
MatchTag(Match<'a, Tag>),
Has(Path<'a>),
}
pub struct Match<'a, T>(pub TypedPath<'a, T>, pub T);
pub struct TypedPath<'a, T>(pub &'a [TypedTag<Object<'static>>], pub TypedTag<T>);
pub struct Path<'a>(pub &'a [TypedTag<Object<'static>>], pub Tag);
|