Skip to main content

FlowModel

Struct FlowModel 

Source
pub struct FlowModel { /* private fields */ }
Expand description

Reachability analysis for one sequence.

Implementations§

Source§

impl FlowModel

Source

pub fn analyse(source: &mut dyn SequenceFacts, sequence: SequenceRef) -> Self

Analyses the sequence as it stands now.

Source

pub fn step_count(&self) -> usize

Returns the number of analysed steps.

Source

pub fn terminal_index(&self) -> Option<usize>

Returns the first certain terminal index.

Source

pub fn is_terminal(&self, index: usize) -> bool

Returns whether the step is terminal.

Source

pub fn is_severed(&self, index: usize) -> bool

Returns whether the step is severed.

Source

pub fn may_end_at(&self, index: usize) -> bool

Returns whether the step may end the sequence.

§Panics

Panics if index is out of range.

Source

pub fn declared_flow(&self, index: usize) -> Flow

Returns the declared flow.

§Panics

Panics if index is out of range.

Source

pub fn is_missing(&self, index: usize) -> bool

Returns whether the step is missing.

§Panics

Panics if index is out of range.

Source

pub fn warnings(&self) -> impl Iterator<Item = (usize, &str)>

Iterates over warnings in step order.

Source

pub fn has_warning_at(&self, index: usize) -> bool

Returns whether the step has a warning.

Source

pub fn node(&self, index: usize) -> RailNode

Returns the node for one row.

§Panics

Panics if index is out of range.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.