pub struct MinDfa { /* private fields */ }Expand description
Minimal complete automaton with canonical numbering.
Implementations§
Source§impl MinDfa
impl MinDfa
Sourcepub fn num_states(&self) -> usize
pub fn num_states(&self) -> usize
Number of states.
Sourcepub fn num_classes(&self) -> usize
pub fn num_classes(&self) -> usize
Number of symbol classes after merging indistinguishable ones.
Sourcepub fn is_accepting(&self, s: usize) -> bool
pub fn is_accepting(&self, s: usize) -> bool
Is state s accepting?
Sourcepub fn canonical_form(&self) -> String
pub fn canonical_form(&self) -> String
Exact textual form; equal strings iff equal languages (same alphabet).
Sourcepub fn fingerprint(&self) -> String
pub fn fingerprint(&self) -> String
SHA-256 of the canonical form: the language fingerprint (FR-B04). The canonical form is the authority; the hash is its compact name.
Trait Implementations§
impl Eq for MinDfa
impl StructuralPartialEq for MinDfa
Auto Trait Implementations§
impl Forget for MinDfa
impl Freeze for MinDfa
impl RefUnwindSafe for MinDfa
impl Send for MinDfa
impl Sync for MinDfa
impl Unpin for MinDfa
impl UnsafeUnpin for MinDfa
impl UnwindSafe for MinDfa
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