pub struct ChainReducer<Net, First, Second>(/* private fields */)
where
First: Reduce<Net>,
Second: Reduce<Net>;Expand description
Apply the first reduction and then the second reduction
This struct also implement PlaceReduce and TransitionReduce to allows chaining
reductions on a specific place or transition
Trait Implementations§
Source§impl<Net: Default, First, Second> Default for ChainReducer<Net, First, Second>
impl<Net: Default, First, Second> Default for ChainReducer<Net, First, Second>
Source§fn default() -> ChainReducer<Net, First, Second>
fn default() -> ChainReducer<Net, First, Second>
Returns the “default value” for a type. Read more
Source§impl<Net, First, Second> PlaceReduce<Net> for ChainReducer<Net, First, Second>where
First: PlaceReduce<Net>,
Second: PlaceReduce<Net>,
impl<Net, First, Second> PlaceReduce<Net> for ChainReducer<Net, First, Second>where
First: PlaceReduce<Net>,
Second: PlaceReduce<Net>,
Source§fn place_reduce(
net: &mut Net,
pl: PlaceId,
modifications: &mut Vec<Modification>,
)
fn place_reduce( net: &mut Net, pl: PlaceId, modifications: &mut Vec<Modification>, )
Try to apply a reduction rule on a specific place
Source§impl<Net, First, Second> Reduce<Net> for ChainReducer<Net, First, Second>
impl<Net, First, Second> Reduce<Net> for ChainReducer<Net, First, Second>
Source§impl<Net, First, Second> TransitionReduce<Net> for ChainReducer<Net, First, Second>where
First: TransitionReduce<Net>,
Second: TransitionReduce<Net>,
impl<Net, First, Second> TransitionReduce<Net> for ChainReducer<Net, First, Second>where
First: TransitionReduce<Net>,
Second: TransitionReduce<Net>,
Source§fn transition_reduce(
net: &mut Net,
tr: TransitionId,
modifications: &mut Vec<Modification>,
)
fn transition_reduce( net: &mut Net, tr: TransitionId, modifications: &mut Vec<Modification>, )
Try to apply a reduction rule on a specific place
impl<Net, First, Second> ConservativeReduce<Net> for ChainReducer<Net, First, Second>where
First: ConservativeReduce<Net>,
Second: ConservativeReduce<Net>,
Auto Trait Implementations§
impl<Net, First, Second> Freeze for ChainReducer<Net, First, Second>
impl<Net, First, Second> RefUnwindSafe for ChainReducer<Net, First, Second>
impl<Net, First, Second> Send for ChainReducer<Net, First, Second>
impl<Net, First, Second> Sync for ChainReducer<Net, First, Second>
impl<Net, First, Second> Unpin for ChainReducer<Net, First, Second>
impl<Net, First, Second> UnwindSafe for ChainReducer<Net, First, Second>
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