pub struct FlowModel { /* private fields */ }Expand description
Reachability analysis for one sequence.
Implementations§
Source§impl FlowModel
impl FlowModel
Sourcepub fn analyse(source: &mut dyn SequenceFacts, sequence: SequenceRef) -> Self
pub fn analyse(source: &mut dyn SequenceFacts, sequence: SequenceRef) -> Self
Analyses the sequence as it stands now.
Sourcepub fn step_count(&self) -> usize
pub fn step_count(&self) -> usize
Returns the number of analysed steps.
Sourcepub fn terminal_index(&self) -> Option<usize>
pub fn terminal_index(&self) -> Option<usize>
Returns the first certain terminal index.
Sourcepub fn is_terminal(&self, index: usize) -> bool
pub fn is_terminal(&self, index: usize) -> bool
Returns whether the step is terminal.
Sourcepub fn is_severed(&self, index: usize) -> bool
pub fn is_severed(&self, index: usize) -> bool
Returns whether the step is severed.
Sourcepub fn may_end_at(&self, index: usize) -> bool
pub fn may_end_at(&self, index: usize) -> bool
Sourcepub fn declared_flow(&self, index: usize) -> Flow
pub fn declared_flow(&self, index: usize) -> Flow
Sourcepub fn is_missing(&self, index: usize) -> bool
pub fn is_missing(&self, index: usize) -> bool
Sourcepub fn warnings(&self) -> impl Iterator<Item = (usize, &str)>
pub fn warnings(&self) -> impl Iterator<Item = (usize, &str)>
Iterates over warnings in step order.
Sourcepub fn has_warning_at(&self, index: usize) -> bool
pub fn has_warning_at(&self, index: usize) -> bool
Returns whether the step has a warning.
Auto Trait Implementations§
impl Freeze for FlowModel
impl RefUnwindSafe for FlowModel
impl Send for FlowModel
impl Sync for FlowModel
impl Unpin for FlowModel
impl UnsafeUnpin for FlowModel
impl UnwindSafe for FlowModel
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