pub struct RetainTransducer<T, F> {
inner: T,
pred: F,
}Fields§
§inner: T§pred: FImplementations§
Source§impl<T, F> RetainTransducer<T, F>
impl<T, F> RetainTransducer<T, F>
Trait Implementations§
Source§impl<T, F> Transducer for RetainTransducer<T, F>
impl<T, F> Transducer for RetainTransducer<T, F>
type Input = <T as Transducer>::Input
type Output = <T as Transducer>::Output
type State = <T as Transducer>::State
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, F> Freeze for RetainTransducer<T, F>
impl<T, F> RefUnwindSafe for RetainTransducer<T, F>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, F> Send for RetainTransducer<T, F>
impl<T, F> Sync for RetainTransducer<T, F>
impl<T, F> Unpin for RetainTransducer<T, F>
impl<T, F> UnsafeUnpin for RetainTransducer<T, F>where
T: UnsafeUnpin,
F: UnsafeUnpin,
impl<T, F> UnwindSafe for RetainTransducer<T, F>where
T: UnwindSafe,
F: UnwindSafe,
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