pub struct SLTForFoldGroupState<A: Hash + Eq + Clone> {
pub target: VarAtomBase<A>,
pub initial: NodeId,
pub update: NodeId,
}Expand description
One loop-carried state in a grouped fixed-trip-count fold.
initial is evaluated before entering the loop and update is evaluated
once per iteration with all state targets bound to the previous iteration’s
values. A SLTNode::ForFoldGroup packs the final values in states
order, with the first state occupying the most-significant bits.
Fields§
§target: VarAtomBase<A>§initial: NodeId§update: NodeIdTrait Implementations§
Source§impl<A: Clone + Hash + Eq + Clone> Clone for SLTForFoldGroupState<A>
impl<A: Clone + Hash + Eq + Clone> Clone for SLTForFoldGroupState<A>
Source§fn clone(&self) -> SLTForFoldGroupState<A>
fn clone(&self) -> SLTForFoldGroupState<A>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, A> Deserialize<'de> for SLTForFoldGroupState<A>
impl<'de, A> Deserialize<'de> for SLTForFoldGroupState<A>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<A: Eq + Hash + Eq + Clone> Eq for SLTForFoldGroupState<A>
Source§impl<A> Serialize for SLTForFoldGroupState<A>
impl<A> Serialize for SLTForFoldGroupState<A>
impl<A: PartialEq + Hash + Eq + Clone> StructuralPartialEq for SLTForFoldGroupState<A>
Auto Trait Implementations§
impl<A> Freeze for SLTForFoldGroupState<A>where
VarAtomBase<A>: Freeze,
impl<A> RefUnwindSafe for SLTForFoldGroupState<A>where
VarAtomBase<A>: RefUnwindSafe,
impl<A> Send for SLTForFoldGroupState<A>where
VarAtomBase<A>: Send,
impl<A> Sync for SLTForFoldGroupState<A>where
VarAtomBase<A>: Sync,
impl<A> Unpin for SLTForFoldGroupState<A>where
VarAtomBase<A>: Unpin,
impl<A> UnsafeUnpin for SLTForFoldGroupState<A>where
VarAtomBase<A>: UnsafeUnpin,
impl<A> UnwindSafe for SLTForFoldGroupState<A>where
VarAtomBase<A>: 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