Struct finite_state_automaton::FSA [−][src]
Implementations
impl<'a, Q: Debug + Eq + Hash + Clone> FSA<'a, Q>
[src]
pub fn new<S: ToString>(
states: &'a [Q],
symbols: &'a [S],
start_state: Q,
accept_states: &'a [Q],
transitions: Vec<Transition<Q, S>>
) -> Self
[src]
states: &'a [Q],
symbols: &'a [S],
start_state: Q,
accept_states: &'a [Q],
transitions: Vec<Transition<Q, S>>
) -> Self
pub fn accepts<P: ToString + Hash + Eq, T: Iterator<Item = P>>(
&self,
tape: T
) -> bool
[src]
&self,
tape: T
) -> bool
pub fn rejects<P: ToString + Hash + Eq, T: Iterator<Item = P>>(
&self,
tape: T
) -> bool
[src]
&self,
tape: T
) -> bool
Trait Implementations
Auto Trait Implementations
impl<'a, Q> RefUnwindSafe for FSA<'a, Q> where
Q: RefUnwindSafe,
[src]
Q: RefUnwindSafe,
impl<'a, Q> Send for FSA<'a, Q> where
Q: Send + Sync,
[src]
Q: Send + Sync,
impl<'a, Q> Sync for FSA<'a, Q> where
Q: Sync,
[src]
Q: Sync,
impl<'a, Q> Unpin for FSA<'a, Q> where
Q: Unpin,
[src]
Q: Unpin,
impl<'a, Q> UnwindSafe for FSA<'a, Q> where
Q: RefUnwindSafe + UnwindSafe,
[src]
Q: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,