Struct salsa::SweepStrategy [−][src]
pub struct SweepStrategy { /* fields omitted */ }
Expand description
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.
Implementations
impl SweepStrategy
[src]
impl SweepStrategy
[src]pub fn discard_outdated() -> 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]
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]
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]
pub fn sweep_outdated(self) -> SweepStrategy
[src]Process all keys, not verefied at the current revision.
pub fn sweep_all_revisions(self) -> SweepStrategy
[src]
pub fn sweep_all_revisions(self) -> SweepStrategy
[src]Process all keys.
Trait Implementations
impl Clone for SweepStrategy
[src]
impl Clone for SweepStrategy
[src]fn clone(&self) -> SweepStrategy
[src]
fn clone(&self) -> SweepStrategy
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for SweepStrategy
[src]
impl Debug for SweepStrategy
[src]impl Default for SweepStrategy
[src]
impl Default for SweepStrategy
[src]fn default() -> SweepStrategy
[src]
fn default() -> SweepStrategy
[src]Returns the “default value” for a type. Read more
impl PartialEq<SweepStrategy> for SweepStrategy
[src]
impl PartialEq<SweepStrategy> for SweepStrategy
[src]fn eq(&self, other: &SweepStrategy) -> bool
[src]
fn eq(&self, other: &SweepStrategy) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &SweepStrategy) -> bool
[src]
fn ne(&self, other: &SweepStrategy) -> bool
[src]This method tests for !=
.
impl Copy for SweepStrategy
[src]
impl Eq for SweepStrategy
[src]
impl StructuralEq for SweepStrategy
[src]
impl StructuralPartialEq for SweepStrategy
[src]
Auto Trait Implementations
impl RefUnwindSafe for SweepStrategy
impl Send for SweepStrategy
impl Sync for SweepStrategy
impl Unpin for SweepStrategy
impl UnwindSafe for SweepStrategy
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more