pub enum CompressionLevel {
Episodic,
Procedural,
Declarative,
}Expand description
The three abstraction levels in the compression spectrum.
Variants§
Episodic
Raw episodic messages — full fidelity, high token cost.
Procedural
Abstracted procedural knowledge (how-to, tool patterns).
Declarative
Stable declarative facts and reference material.
Implementations§
Source§impl CompressionLevel
impl CompressionLevel
Sourcepub const fn cost_factor(self) -> f32
pub const fn cost_factor(self) -> f32
A relative token-cost factor for budgeting purposes.
Episodic = 1.0 (baseline), Procedural = 0.6, Declarative = 0.3.
Trait Implementations§
Source§impl Clone for CompressionLevel
impl Clone for CompressionLevel
Source§fn clone(&self) -> CompressionLevel
fn clone(&self) -> CompressionLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompressionLevel
impl Debug for CompressionLevel
Source§impl Ord for CompressionLevel
impl Ord for CompressionLevel
Source§fn cmp(&self, other: &CompressionLevel) -> Ordering
fn cmp(&self, other: &CompressionLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CompressionLevel
impl PartialEq for CompressionLevel
Source§fn eq(&self, other: &CompressionLevel) -> bool
fn eq(&self, other: &CompressionLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CompressionLevel
impl PartialOrd for CompressionLevel
impl Copy for CompressionLevel
impl Eq for CompressionLevel
impl StructuralPartialEq for CompressionLevel
Auto Trait Implementations§
impl Freeze for CompressionLevel
impl RefUnwindSafe for CompressionLevel
impl Send for CompressionLevel
impl Sync for CompressionLevel
impl Unpin for CompressionLevel
impl UnsafeUnpin for CompressionLevel
impl UnwindSafe for CompressionLevel
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