pub enum ContextFeature {
ToolOffload,
Scratchpad,
Semantic,
Provenance,
Experiential,
Scheduled,
}Expand description
A composable context-management feature (Phase 26, #588) — an independent
on/off technique under [context.features] and the /context feature <name> on|off command. None are implemented yet (available() is false for all);
they land in 26.3–26.6 and report “not yet available” until then (same
pattern as the ContextManager presets under #546).
Variants§
ToolOffload
Cap oversized tool outputs; spill the full payload to a re-readable store (#584).
Scratchpad
Structured <state> store mutated via tools, kept out of the log (#583).
Semantic
Structure-aligned retrieval of repo evidence (#582).
Provenance
Provenance-preserving compaction with retrievable handles (#584).
Experiential
Write-gated cross-task experience memory (#585).
Scheduled
Per-step compiled context view instead of a rolling buffer (#586).
Implementations§
Source§impl ContextFeature
impl ContextFeature
Sourcepub fn from_keyword(s: &str) -> Option<Self>
pub fn from_keyword(s: &str) -> Option<Self>
Parse a keyword (case-insensitive; -/_ interchangeable; short aliases).
Sourcepub fn keyword(self) -> &'static str
pub fn keyword(self) -> &'static str
The canonical lowercase keyword (matches the [context.features] key).
Sourcepub fn available(self) -> bool
pub fn available(self) -> bool
Whether this feature is implemented yet. Flips true per feature as it
lands (26.3–26.6). tool_offload 26.3 (#584); scratchpad 26.4 (#583);
semantic 26.5 (#582); experiential 26.6a (#585); scheduled 26.6b
(#586). Only provenance (#584, a later compaction-handle feature) is
still pending.
Trait Implementations§
Source§impl Clone for ContextFeature
impl Clone for ContextFeature
Source§fn clone(&self) -> ContextFeature
fn clone(&self) -> ContextFeature
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ContextFeature
Source§impl Debug for ContextFeature
impl Debug for ContextFeature
impl Eq for ContextFeature
Source§impl PartialEq for ContextFeature
impl PartialEq for ContextFeature
impl StructuralPartialEq for ContextFeature
Auto Trait Implementations§
impl Freeze for ContextFeature
impl RefUnwindSafe for ContextFeature
impl Send for ContextFeature
impl Sync for ContextFeature
impl Unpin for ContextFeature
impl UnsafeUnpin for ContextFeature
impl UnwindSafe for ContextFeature
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more