caretta-sync/tripod-id/src/lib.rs

28 lines
417 B
Rust
Raw Normal View History

2025-09-13 08:39:06 +09:00
mod single;
2025-09-12 09:27:14 +09:00
mod double;
mod error;
mod triple;
2025-09-13 12:29:59 +09:00
mod utils;
#[cfg(feature="rusqlite")]
mod rusqlite;
#[cfg(feature="serde")]
mod serde;
2025-09-12 09:27:14 +09:00
2025-09-13 08:39:06 +09:00
pub use single::*;
pub use double::*;
pub use triple::*;
pub use error::*;
2025-09-23 22:20:18 +09:00
#[cfg(feature="prost")]
pub mod prost;
pub trait TripodId {
2025-09-13 08:39:06 +09:00
type SizeType;
const NIL: Self;
const MAX: Self;
const SIZE: Self::SizeType;
2025-09-13 12:29:59 +09:00
#[cfg(test)]
fn is_valid(&self) -> bool;
}