#[repr(u8)]pub enum Tier {
Reject = 0,
Bronze = 1,
Silver = 2,
Gold = 3,
Platinum = 4,
}Expand description
Quality tier enumeration
Tiers are assigned based on semantic density (δ):
- ⊘ Reject: δ < 0.20 — Document is too sparse
- ◊⁻ Bronze: δ ≥ 0.20 — Draft/review quality
- ◊ Silver: δ ≥ 0.40 — Development/testing
- ◊⁺ Gold: δ ≥ 0.60 — Staging/pre-production
- ◊⁺⁺ Platinum: δ ≥ 0.75 — Production deployment
Variants§
Reject = 0
⊘: δ < 0.20 — Rejected
Bronze = 1
◊⁻: δ ≥ 0.20 — Bronze
Silver = 2
◊: δ ≥ 0.40 — Silver
Gold = 3
◊⁺: δ ≥ 0.60 — Gold
Platinum = 4
◊⁺⁺: δ ≥ 0.75 — Platinum
Implementations§
Source§impl Tier
impl Tier
Sourcepub fn from_delta(delta: f32) -> Self
pub fn from_delta(delta: f32) -> Self
Compute tier from semantic density score
§Arguments
delta- Semantic density δ ∈ [0, 1]
§Example
use aisp::Tier;
assert_eq!(Tier::from_delta(0.80), Tier::Platinum);
assert_eq!(Tier::from_delta(0.65), Tier::Gold);
assert_eq!(Tier::from_delta(0.45), Tier::Silver);
assert_eq!(Tier::from_delta(0.25), Tier::Bronze);
assert_eq!(Tier::from_delta(0.10), Tier::Reject);Sourcepub const fn symbol(self) -> &'static str
pub const fn symbol(self) -> &'static str
Get the Unicode tier symbol
§Example
use aisp::Tier;
assert_eq!(Tier::Platinum.symbol(), "◊⁺⁺");
assert_eq!(Tier::Reject.symbol(), "⊘");Sourcepub const fn is_production_ready(self) -> bool
pub const fn is_production_ready(self) -> bool
Check if tier meets minimum production requirement (Gold or better)
Trait Implementations§
Source§impl Ord for Tier
impl Ord for Tier
Source§impl PartialOrd for Tier
impl PartialOrd for Tier
impl Copy for Tier
impl Eq for Tier
impl StructuralPartialEq for Tier
Auto Trait Implementations§
impl Freeze for Tier
impl RefUnwindSafe for Tier
impl Send for Tier
impl Sync for Tier
impl Unpin for Tier
impl UnwindSafe for Tier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more