pub struct DemotionEngine { /* private fields */ }Expand description
Main demotion engine that orchestrates the progressive content reduction
Implementations§
Source§impl DemotionEngine
impl DemotionEngine
pub fn new() -> Result<Self>
pub fn demote_content( &mut self, content: &str, file_path: &str, target_mode: FidelityMode, token_budget: Option<usize>, ) -> Result<DemotionResult>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DemotionEngine
impl !RefUnwindSafe for DemotionEngine
impl !Send for DemotionEngine
impl !Sync for DemotionEngine
impl Unpin for DemotionEngine
impl !UnwindSafe for DemotionEngine
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
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>
Converts
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>
Converts
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