pub struct MmpFlowchart {
pub pair: LogPair,
pub history: Vec<MmpStep>,
pub picard_number: usize,
}Expand description
Minimal model flowchart simulator.
Runs a simplified MMP on a sequence of user-specified steps. Terminates when a terminal step (minimal model or fiber space) is reached.
Fields§
§pair: LogPairThe log pair being processed.
history: Vec<MmpStep>The history of steps taken so far.
picard_number: usizeThe current Picard number (decreases with divisorial contractions).
Implementations§
Source§impl MmpFlowchart
impl MmpFlowchart
Sourcepub fn new(pair: LogPair, initial_picard: usize) -> Self
pub fn new(pair: LogPair, initial_picard: usize) -> Self
Create a new MMP flowchart starting from a log pair.
Sourcepub fn apply(&mut self, step: MmpStep) -> bool
pub fn apply(&mut self, step: MmpStep) -> bool
Apply a single MMP step and record it.
Returns true if the MMP terminated, false if another step is needed.
Auto Trait Implementations§
impl Freeze for MmpFlowchart
impl RefUnwindSafe for MmpFlowchart
impl Send for MmpFlowchart
impl Sync for MmpFlowchart
impl Unpin for MmpFlowchart
impl UnsafeUnpin for MmpFlowchart
impl UnwindSafe for MmpFlowchart
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