#[repr(u8)]pub enum ReevaluationRule {
Move = 0,
CacheLast = 1,
CacheAll = 2,
}Variants§
Move = 0
Always move outputs, reevaluate every time. If the receiving node takes a reference, it will be pased in, then dropped after that node evaluates.
CacheLast = 1
If all inputs are previous inputs, don’t evaluate and just return a clone of the cached output.
CacheAll = 2
If all inputs are equal to ANY previous input combination, don’t evaluate and just return a clone of the cached output associated with that exact set of inputs.
Trait Implementations§
Source§impl Clone for ReevaluationRule
impl Clone for ReevaluationRule
Source§fn clone(&self) -> ReevaluationRule
fn clone(&self) -> ReevaluationRule
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReevaluationRule
impl Debug for ReevaluationRule
Source§impl Hash for ReevaluationRule
impl Hash for ReevaluationRule
Source§impl PartialEq for ReevaluationRule
impl PartialEq for ReevaluationRule
impl Copy for ReevaluationRule
impl Eq for ReevaluationRule
impl StructuralPartialEq for ReevaluationRule
Auto Trait Implementations§
impl Freeze for ReevaluationRule
impl RefUnwindSafe for ReevaluationRule
impl Send for ReevaluationRule
impl Sync for ReevaluationRule
impl Unpin for ReevaluationRule
impl UnwindSafe for ReevaluationRule
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.