pub enum AiDetectionMode {
Auto,
Always,
Never,
}Expand description
AI memory detection mode. Controls whether AI is used for memory category detection.
Variants§
Auto
Hybrid mode: rule-based detection, AI enriches when confidence is low (default).
Always
Always use AI for memory detection (more accurate but slower).
Never
Never use AI, only rule-based detection (fastest).
Implementations§
Source§impl AiDetectionMode
impl AiDetectionMode
Sourcepub fn should_use_ai(&self) -> bool
pub fn should_use_ai(&self) -> bool
Whether AI detection should be used.
Sourcepub fn should_use_ai_for_text(&self, text_len: usize) -> bool
pub fn should_use_ai_for_text(&self, text_len: usize) -> bool
Whether AI detection should be used for given text length. Longer texts benefit more from AI detection.
Trait Implementations§
Source§impl Clone for AiDetectionMode
impl Clone for AiDetectionMode
Source§fn clone(&self) -> AiDetectionMode
fn clone(&self) -> AiDetectionMode
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 AiDetectionMode
impl Debug for AiDetectionMode
Source§impl Default for AiDetectionMode
impl Default for AiDetectionMode
Source§fn default() -> AiDetectionMode
fn default() -> AiDetectionMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for AiDetectionMode
impl PartialEq for AiDetectionMode
Source§fn eq(&self, other: &AiDetectionMode) -> bool
fn eq(&self, other: &AiDetectionMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AiDetectionMode
impl Eq for AiDetectionMode
impl StructuralPartialEq for AiDetectionMode
Auto Trait Implementations§
impl Freeze for AiDetectionMode
impl RefUnwindSafe for AiDetectionMode
impl Send for AiDetectionMode
impl Sync for AiDetectionMode
impl Unpin for AiDetectionMode
impl UnsafeUnpin for AiDetectionMode
impl UnwindSafe for AiDetectionMode
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