pub struct RevLexicographicalTransducer<T> {
ordering: Ordering,
equal: bool,
_marker: PhantomData<fn() -> T>,
}Expand description
DFA to accept Less/Greater than (or equal to) in reversed lexicographical order
Fields§
§ordering: Ordering§equal: bool§_marker: PhantomData<fn() -> T>Implementations§
Source§impl<T> RevLexicographicalTransducer<T>
impl<T> RevLexicographicalTransducer<T>
pub fn less_than() -> Self
pub fn less_than_or_equal() -> Self
pub fn greater_than() -> Self
pub fn greater_than_or_equal() -> Self
Trait Implementations§
Source§impl<T: Clone> Clone for RevLexicographicalTransducer<T>
impl<T: Clone> Clone for RevLexicographicalTransducer<T>
Source§impl<T: Debug> Debug for RevLexicographicalTransducer<T>
impl<T: Debug> Debug for RevLexicographicalTransducer<T>
Source§impl<T> Transducer for RevLexicographicalTransducer<T>where
T: Ord,
impl<T> Transducer for RevLexicographicalTransducer<T>where
T: Ord,
type Input = (T, T)
type Output = ()
fn start(&self) -> Self::State
fn relation( &self, state: &Self::State, input: &Self::Input, ) -> Option<(Self::State, Self::Output)>
fn accept(&self, state: &Self::State) -> bool
fn stepout(&mut self)
fn dp<M>(self, init: M::T) -> InitTransducerDp<M, Self>
fn intersection<U>(self, other: U) -> IntersectionTransducer<(Self, U)>
fn product<U>(self, other: U) -> ProductTransducer<(Self, U)>where
Self: Sized,
U: Transducer,
fn chain<U>(self, other: U) -> ChainTransducer<(Self, U)>
fn with_input(
self,
) -> IntersectionTransducer<(Self, IdentityTransducer<Self::Input>)>where
Self: Sized,
fn map<U, F>(self, f: F) -> MapTransducer<Self, U, F>
fn try_map<U, F>(self, f: F) -> TryMapTransducer<Self, U, F>
fn retain<F>(self, pred: F) -> RetainTransducer<Self, F>
fn with_fold<A, F>(self, init: A, f: F) -> FoldTransducer<Self, A, F>
fn with_try_fold<A, F>(self, init: A, f: F) -> TryFoldTransducer<Self, A, F>
fn accepting<F>(self, pred: F) -> AcceptTransducer<Self, F>
Auto Trait Implementations§
impl<T> Freeze for RevLexicographicalTransducer<T>
impl<T> RefUnwindSafe for RevLexicographicalTransducer<T>
impl<T> Send for RevLexicographicalTransducer<T>
impl<T> Sync for RevLexicographicalTransducer<T>
impl<T> Unpin for RevLexicographicalTransducer<T>
impl<T> UnsafeUnpin for RevLexicographicalTransducer<T>
impl<T> UnwindSafe for RevLexicographicalTransducer<T>
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