pub struct Evaluator<'v, L> { /* private fields */ }Expand description
Evaluates nodes of one value graph, keeping what it has evaluated: the leaves are asked once each.
Implementations§
Source§impl<'v, L: FnMut(NodeId, &Node, &[u32]) -> Option<u32>> Evaluator<'v, L>
impl<'v, L: FnMut(NodeId, &Node, &[u32]) -> Option<u32>> Evaluator<'v, L>
Sourcepub fn new(values: &'v Values, flush_denormals: bool, leaf: L) -> Self
pub fn new(values: &'v Values, flush_denormals: bool, leaf: L) -> Self
An evaluator of values, whose program flushes subnormal floats to zero where flush_denormals (the lifted
program’s modes), asking leaf(id, node, at) for each leaf’s word: at the words it is read at, a run-time
indexed global’s index values (outermost first) or a texel’s coordinate then its controls, empty for the other
leaves.
Trait Implementations§
Auto Trait Implementations§
impl<'v, L> Forget for Evaluator<'v, L>
impl<'v, L> Freeze for Evaluator<'v, L>where
L: Freeze,
impl<'v, L> RefUnwindSafe for Evaluator<'v, L>where
L: RefUnwindSafe,
impl<'v, L> Send for Evaluator<'v, L>where
L: Send,
impl<'v, L> Sync for Evaluator<'v, L>where
L: Sync,
impl<'v, L> Unpin for Evaluator<'v, L>where
L: Unpin,
impl<'v, L> UnsafeUnpin for Evaluator<'v, L>where
L: UnsafeUnpin,
impl<'v, L> UnwindSafe for Evaluator<'v, L>where
L: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more