global: snapshot

This commit is contained in:
nym21
2025-08-17 21:38:28 +02:00
parent 7d47bc8042
commit 05036c682f
51 changed files with 2551 additions and 6115 deletions

View File

@@ -1,6 +1,6 @@
use vecdb::{Printable, StoredCompressed};
use derive_deref::Deref;
use serde::Serialize;
use vecdb::{Printable, StoredCompressed};
use zerocopy_derive::{FromBytes, Immutable, IntoBytes, KnownLayout};
#[derive(
@@ -25,6 +25,14 @@ pub struct StoredBool(u16);
impl StoredBool {
pub const FALSE: Self = Self(0);
pub const TRUE: Self = Self(1);
pub fn is_true(&self) -> bool {
*self == Self::TRUE
}
pub fn is_false(&self) -> bool {
*self == Self::FALSE
}
}
impl From<bool> for StoredBool {