pub struct IteratorTransducer<I, A>where
I: Iterator,{ /* private fields */ }
Implementations§
Source§impl<I, A> IteratorTransducer<I, A>where
I: Iterator,
impl<I, A> IteratorTransducer<I, A>where
I: Iterator,
pub fn new(iter: I) -> Self
Sourcepub fn new_peekable(iter: Peekable<I>) -> Self
pub fn new_peekable(iter: Peekable<I>) -> Self
Trait Implementations§
Source§impl<I, A> Clone for IteratorTransducer<I, A>
impl<I, A> Clone for IteratorTransducer<I, A>
Source§impl<I, A> Debug for IteratorTransducer<I, A>
impl<I, A> Debug for IteratorTransducer<I, A>
Source§impl<I, A> Transducer for IteratorTransducer<I, A>
impl<I, A> Transducer for IteratorTransducer<I, A>
type Input = A
type Output = <I as Iterator>::Item
type 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, ) -> ChainTransducer<(Self, MapTransducer<Self::Output, U, F>)>
fn filter_map<U, F>( self, f: F, ) -> ChainTransducer<(Self, FilterMapTransducer<Self::Output, U, F>)>
Auto Trait Implementations§
impl<I, A> !Freeze for IteratorTransducer<I, A>
impl<I, A> !RefUnwindSafe for IteratorTransducer<I, A>
impl<I, A> Send for IteratorTransducer<I, A>
impl<I, A> !Sync for IteratorTransducer<I, A>
impl<I, A> Unpin for IteratorTransducer<I, A>
impl<I, A> UnwindSafe for IteratorTransducer<I, A>
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