Struct calc_graph::Func6
source · pub struct Func6<C1, C2, C3, C4, C5, C6, T, F> { /* private fields */ }
Expand description
Calculates a value from 6 nodes.
Trait Implementations
sourceimpl<C1: Calc, C2: Calc, C3: Calc, C4: Calc, C5: Calc, C6: Calc, T: Clone + PartialEq, F: FnMut(C1::Value, C2::Value, C3::Value, C4::Value, C5::Value, C6::Value) -> T> Calc for Func6<C1, C2, C3, C4, C5, C6, T, F>
impl<C1: Calc, C2: Calc, C3: Calc, C4: Calc, C5: Calc, C6: Calc, T: Clone + PartialEq, F: FnMut(C1::Value, C2::Value, C3::Value, C4::Value, C5::Value, C6::Value) -> T> Calc for Func6<C1, C2, C3, C4, C5, C6, 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, C5, C6, T, F> RefUnwindSafe for Func6<C1, C2, C3, C4, C5, C6, T, F>where
C1: RefUnwindSafe,
C2: RefUnwindSafe,
C3: RefUnwindSafe,
C4: RefUnwindSafe,
C5: RefUnwindSafe,
C6: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<C1, C2, C3, C4, C5, C6, T, F> Send for Func6<C1, C2, C3, C4, C5, C6, T, F>where
C1: Send,
C2: Send,
C3: Send,
C4: Send,
C5: Send,
C6: Send,
F: Send,
T: Send,
impl<C1, C2, C3, C4, C5, C6, T, F> Sync for Func6<C1, C2, C3, C4, C5, C6, T, F>where
C1: Sync,
C2: Sync,
C3: Sync,
C4: Sync,
C5: Sync,
C6: Sync,
F: Sync,
T: Sync,
impl<C1, C2, C3, C4, C5, C6, T, F> Unpin for Func6<C1, C2, C3, C4, C5, C6, T, F>where
C1: Unpin,
C2: Unpin,
C3: Unpin,
C4: Unpin,
C5: Unpin,
C6: Unpin,
F: Unpin,
T: Unpin,
impl<C1, C2, C3, C4, C5, C6, T, F> UnwindSafe for Func6<C1, C2, C3, C4, C5, C6, T, F>where
C1: UnwindSafe,
C2: UnwindSafe,
C3: UnwindSafe,
C4: UnwindSafe,
C5: UnwindSafe,
C6: 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