pub struct MemoryHygiene { /* private fields */ }Expand description
Bounded background hygiene pass over active fact overlaps.
Implementations§
Source§impl MemoryHygiene
impl MemoryHygiene
pub fn new(provider: Arc<dyn Provider>, model: impl Into<String>) -> Self
Sourcepub fn with_max_clusters(self, max_clusters: usize) -> Self
pub fn with_max_clusters(self, max_clusters: usize) -> Self
Cap how many overlap clusters one pass may send to the model.
Sourcepub async fn review_overlaps<S>(&self, store: &S) -> Result<HygieneReport>
pub async fn review_overlaps<S>(&self, store: &S) -> Result<HygieneReport>
Inspect unreviewed overlap clusters and apply validated model verdicts.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MemoryHygiene
impl !UnwindSafe for MemoryHygiene
impl Forget for MemoryHygiene
impl Freeze for MemoryHygiene
impl Move for MemoryHygiene
impl Send for MemoryHygiene
impl Sync for MemoryHygiene
impl Unpin for MemoryHygiene
impl UnsafeUnpin for MemoryHygienewhere
*const ArcInner<dyn Provider> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Provider>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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