[−][src]Struct salsa::SweepStrategy
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]
fn eq(&self, other: &SweepStrategy) -> bool
[src]
fn ne(&self, other: &SweepStrategy) -> bool
[src]
impl Copy for SweepStrategy
[src]
impl Clone for SweepStrategy
[src]
fn clone(&self) -> 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]
fn default() -> SweepStrategy
[src]
impl Debug for SweepStrategy
[src]
Auto Trait Implementations
impl Send for SweepStrategy
impl Sync for SweepStrategy
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,