Expand description
UOR Foundation — typed Rust traits for the complete ontology.
Version: 7.0.0
This crate exports every ontology class as a trait, every property as a method, and every named individual as a constant. Implementations (like PRISM) import these traits and provide concrete types.
§Primitives
All traits are generic over Primitives, a type family that lets
implementors choose their own concrete representations for XSD types.
ⓘ
struct MyImpl;
impl uor_foundation::Primitives for MyImpl {
type String = str;
type Integer = i64;
type NonNegativeInteger = u64;
type PositiveInteger = u64;
type Decimal = f64;
type Boolean = bool;
}§Module Structure
Re-exports§
pub use enums::*;
Modules§
- bridge
bridgespace modules.- enums
- Shared enumerations derived from the UOR Foundation ontology.
- kernel
kernelspace modules.- user
userspace modules.
Traits§
- Primitives
- XSD primitive type family.
Implementors choose concrete representations for each XSD type.
PRISM might use
u64for integers at Q0,u128at higher quantum levels, or a bignum library. The foundation does not constrain this choice.