Struct calc_graph::Update4
source · pub struct Update4<C1, C2, C3, C4, T, F> { /* private fields */ }
Expand description
Calculates a value from the value currently in this node and 4 nodes.
Trait Implementations
sourceimpl<C1: Calc, C2: Calc, C3: Calc, C4: Calc, T: Clone, F: FnMut(&mut T, C1::Value, C2::Value, C3::Value, C4::Value) -> bool> Calc for Update4<C1, C2, C3, C4, T, F>
impl<C1: Calc, C2: Calc, C3: Calc, C4: Calc, T: Clone, F: FnMut(&mut T, C1::Value, C2::Value, C3::Value, C4::Value) -> bool> Calc for Update4<C1, C2, C3, C4, T, F>
type Value = T
type Value = T
The type of values calculated by the node.
sourcefn eval(&mut self, dirty: &mut BitSet) -> (NonZeroUsize, T)
fn eval(&mut self, dirty: &mut BitSet) -> (NonZeroUsize, T)
Returns the value held within the node and the version number of the inputs used to calcuate that value.
The value is recalculated if needed. Read more
sourcefn add_dep(&mut self, seen: &mut BitSet, dep: NonZeroUsize)
fn add_dep(&mut self, seen: &mut BitSet, dep: NonZeroUsize)
When this node is used as a precedent,
add_dep
is called by dependent nodes when they are created. Read moreAuto Trait Implementations
impl<C1, C2, C3, C4, T, F> RefUnwindSafe for Update4<C1, C2, C3, C4, T, F>where
C1: RefUnwindSafe,
C2: RefUnwindSafe,
C3: RefUnwindSafe,
C4: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<C1, C2, C3, C4, T, F> Send for Update4<C1, C2, C3, C4, T, F>where
C1: Send,
C2: Send,
C3: Send,
C4: Send,
F: Send,
T: Send,
impl<C1, C2, C3, C4, T, F> Sync for Update4<C1, C2, C3, C4, T, F>where
C1: Sync,
C2: Sync,
C3: Sync,
C4: Sync,
F: Sync,
T: Sync,
impl<C1, C2, C3, C4, T, F> Unpin for Update4<C1, C2, C3, C4, T, F>where
C1: Unpin,
C2: Unpin,
C3: Unpin,
C4: Unpin,
F: Unpin,
T: Unpin,
impl<C1, C2, C3, C4, T, F> UnwindSafe for Update4<C1, C2, C3, C4, T, F>where
C1: UnwindSafe,
C2: UnwindSafe,
C3: UnwindSafe,
C4: UnwindSafe,
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more