pub struct State {
pub edges: Vec<Edge>,
}Expand description
One state’s outgoing edges – a row of the automaton’s static transition
table (plan §1.2). A state with at least one Transition::Match edge
among its edges is an accepting state (per Transition::Match’s own
doc comment: reaching one schedules a pass/fail/cover report); this is a
derived property (see State::is_accepting), not a separate flag, so
it can never drift out of sync with the edges actually present.
Fields§
§edges: Vec<Edge>Implementations§
Source§impl State
impl State
Sourcepub fn is_accepting(&self) -> bool
pub fn is_accepting(&self) -> bool
true if any of this state’s edges is a Transition::Match –
see the struct doc comment.
Trait Implementations§
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.