[][src]Struct salsa::SweepStrategy

pub struct SweepStrategy { /* fields omitted */ }

The sweep strategy controls what data we will keep/discard when we do a GC-sweep. The default (SweepStrategy::default) is a no-op, use SweepStrategy::discard_outdated constructor or discard_* and sweep_* builder functions to construct useful strategies.

Methods

impl SweepStrategy[src]

pub fn discard_outdated() -> SweepStrategy[src]

Convenience function that discards all data not used thus far in the current revision.

Equivalent to SweepStrategy::default().discard_everything().

pub fn discard_values(self) -> SweepStrategy[src]

Collects query values.

Query dependencies are left in the database, which allows to quickly determine if the query is up to date, and avoid recomputing dependencies.

pub fn discard_everything(self) -> SweepStrategy[src]

Collects both values and information about dependencies.

Dependant queries will be recomputed even if all inputs to this query stay the same.

pub fn sweep_outdated(self) -> SweepStrategy[src]

Process all keys, not verefied at the current revision.

pub fn sweep_all_revisions(self) -> SweepStrategy[src]

Process all keys.

Trait Implementations

impl Eq for SweepStrategy[src]

impl PartialEq<SweepStrategy> for SweepStrategy[src]

impl Copy for SweepStrategy[src]

impl Clone for SweepStrategy[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for SweepStrategy[src]

impl Debug for SweepStrategy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]