pub struct IntersectionTransducer<Tuple>(pub Tuple);
Tuple Fields§
§0: Tuple
Trait Implementations§
Source§impl<Tuple: Clone> Clone for IntersectionTransducer<Tuple>
impl<Tuple: Clone> Clone for IntersectionTransducer<Tuple>
Source§fn clone(&self) -> IntersectionTransducer<Tuple>
fn clone(&self) -> IntersectionTransducer<Tuple>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Tuple: Debug> Debug for IntersectionTransducer<Tuple>
impl<Tuple: Debug> Debug for IntersectionTransducer<Tuple>
Source§impl<A, T0> Transducer for IntersectionTransducer<(T0,)>where
T0: Transducer<Input = A>,
impl<A, T0> Transducer for IntersectionTransducer<(T0,)>where
T0: Transducer<Input = A>,
type Input = A
type Output = (<T0 as Transducer>::Output,)
type State = (<T0 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, ) -> ChainTransducer<(Self, MapTransducer<Self::Output, U, F>)>
fn filter_map<U, F>( self, f: F, ) -> ChainTransducer<(Self, FilterMapTransducer<Self::Output, U, F>)>
Source§impl<A, T0, T1> Transducer for IntersectionTransducer<(T0, T1)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
impl<A, T0, T1> Transducer for IntersectionTransducer<(T0, T1)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
type Input = A
type Output = (<T0 as Transducer>::Output, <T1 as Transducer>::Output)
type State = (<T0 as Transducer>::State, <T1 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, ) -> ChainTransducer<(Self, MapTransducer<Self::Output, U, F>)>
fn filter_map<U, F>( self, f: F, ) -> ChainTransducer<(Self, FilterMapTransducer<Self::Output, U, F>)>
Source§impl<A, T0, T1, T2> Transducer for IntersectionTransducer<(T0, T1, T2)>
impl<A, T0, T1, T2> Transducer for IntersectionTransducer<(T0, T1, T2)>
type Input = A
type Output = (<T0 as Transducer>::Output, <T1 as Transducer>::Output, <T2 as Transducer>::Output)
type State = (<T0 as Transducer>::State, <T1 as Transducer>::State, <T2 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, ) -> ChainTransducer<(Self, MapTransducer<Self::Output, U, F>)>
fn filter_map<U, F>( self, f: F, ) -> ChainTransducer<(Self, FilterMapTransducer<Self::Output, U, F>)>
Source§impl<A, T0, T1, T2, T3> Transducer for IntersectionTransducer<(T0, T1, T2, T3)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
T2: Transducer<Input = A>,
T3: Transducer<Input = A>,
impl<A, T0, T1, T2, T3> Transducer for IntersectionTransducer<(T0, T1, T2, T3)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
T2: Transducer<Input = A>,
T3: Transducer<Input = A>,
type Input = A
type Output = (<T0 as Transducer>::Output, <T1 as Transducer>::Output, <T2 as Transducer>::Output, <T3 as Transducer>::Output)
type State = (<T0 as Transducer>::State, <T1 as Transducer>::State, <T2 as Transducer>::State, <T3 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, ) -> ChainTransducer<(Self, MapTransducer<Self::Output, U, F>)>
fn filter_map<U, F>( self, f: F, ) -> ChainTransducer<(Self, FilterMapTransducer<Self::Output, U, F>)>
Source§impl<A, T0, T1, T2, T3, T4> Transducer for IntersectionTransducer<(T0, T1, T2, T3, T4)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
T2: Transducer<Input = A>,
T3: Transducer<Input = A>,
T4: Transducer<Input = A>,
impl<A, T0, T1, T2, T3, T4> Transducer for IntersectionTransducer<(T0, T1, T2, T3, T4)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
T2: Transducer<Input = A>,
T3: Transducer<Input = A>,
T4: Transducer<Input = A>,
type Input = A
type Output = (<T0 as Transducer>::Output, <T1 as Transducer>::Output, <T2 as Transducer>::Output, <T3 as Transducer>::Output, <T4 as Transducer>::Output)
type State = (<T0 as Transducer>::State, <T1 as Transducer>::State, <T2 as Transducer>::State, <T3 as Transducer>::State, <T4 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, ) -> ChainTransducer<(Self, MapTransducer<Self::Output, U, F>)>
fn filter_map<U, F>( self, f: F, ) -> ChainTransducer<(Self, FilterMapTransducer<Self::Output, U, F>)>
Source§impl<A, T0, T1, T2, T3, T4, T5> Transducer for IntersectionTransducer<(T0, T1, T2, T3, T4, T5)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
T2: Transducer<Input = A>,
T3: Transducer<Input = A>,
T4: Transducer<Input = A>,
T5: Transducer<Input = A>,
impl<A, T0, T1, T2, T3, T4, T5> Transducer for IntersectionTransducer<(T0, T1, T2, T3, T4, T5)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
T2: Transducer<Input = A>,
T3: Transducer<Input = A>,
T4: Transducer<Input = A>,
T5: Transducer<Input = A>,
type Input = A
type Output = (<T0 as Transducer>::Output, <T1 as Transducer>::Output, <T2 as Transducer>::Output, <T3 as Transducer>::Output, <T4 as Transducer>::Output, <T5 as Transducer>::Output)
type State = (<T0 as Transducer>::State, <T1 as Transducer>::State, <T2 as Transducer>::State, <T3 as Transducer>::State, <T4 as Transducer>::State, <T5 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, ) -> ChainTransducer<(Self, MapTransducer<Self::Output, U, F>)>
fn filter_map<U, F>( self, f: F, ) -> ChainTransducer<(Self, FilterMapTransducer<Self::Output, U, F>)>
Source§impl<A, T0, T1, T2, T3, T4, T5, T6> Transducer for IntersectionTransducer<(T0, T1, T2, T3, T4, T5, T6)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
T2: Transducer<Input = A>,
T3: Transducer<Input = A>,
T4: Transducer<Input = A>,
T5: Transducer<Input = A>,
T6: Transducer<Input = A>,
impl<A, T0, T1, T2, T3, T4, T5, T6> Transducer for IntersectionTransducer<(T0, T1, T2, T3, T4, T5, T6)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
T2: Transducer<Input = A>,
T3: Transducer<Input = A>,
T4: Transducer<Input = A>,
T5: Transducer<Input = A>,
T6: Transducer<Input = A>,
type Input = A
type Output = (<T0 as Transducer>::Output, <T1 as Transducer>::Output, <T2 as Transducer>::Output, <T3 as Transducer>::Output, <T4 as Transducer>::Output, <T5 as Transducer>::Output, <T6 as Transducer>::Output)
type State = (<T0 as Transducer>::State, <T1 as Transducer>::State, <T2 as Transducer>::State, <T3 as Transducer>::State, <T4 as Transducer>::State, <T5 as Transducer>::State, <T6 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, ) -> ChainTransducer<(Self, MapTransducer<Self::Output, U, F>)>
fn filter_map<U, F>( self, f: F, ) -> ChainTransducer<(Self, FilterMapTransducer<Self::Output, U, F>)>
Source§impl<A, T0, T1, T2, T3, T4, T5, T6, T7> Transducer for IntersectionTransducer<(T0, T1, T2, T3, T4, T5, T6, T7)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
T2: Transducer<Input = A>,
T3: Transducer<Input = A>,
T4: Transducer<Input = A>,
T5: Transducer<Input = A>,
T6: Transducer<Input = A>,
T7: Transducer<Input = A>,
impl<A, T0, T1, T2, T3, T4, T5, T6, T7> Transducer for IntersectionTransducer<(T0, T1, T2, T3, T4, T5, T6, T7)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
T2: Transducer<Input = A>,
T3: Transducer<Input = A>,
T4: Transducer<Input = A>,
T5: Transducer<Input = A>,
T6: Transducer<Input = A>,
T7: Transducer<Input = A>,
type Input = A
type Output = (<T0 as Transducer>::Output, <T1 as Transducer>::Output, <T2 as Transducer>::Output, <T3 as Transducer>::Output, <T4 as Transducer>::Output, <T5 as Transducer>::Output, <T6 as Transducer>::Output, <T7 as Transducer>::Output)
type State = (<T0 as Transducer>::State, <T1 as Transducer>::State, <T2 as Transducer>::State, <T3 as Transducer>::State, <T4 as Transducer>::State, <T5 as Transducer>::State, <T6 as Transducer>::State, <T7 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, ) -> ChainTransducer<(Self, MapTransducer<Self::Output, U, F>)>
fn filter_map<U, F>( self, f: F, ) -> ChainTransducer<(Self, FilterMapTransducer<Self::Output, U, F>)>
Source§impl<A, T0, T1, T2, T3, T4, T5, T6, T7, T8> Transducer for IntersectionTransducer<(T0, T1, T2, T3, T4, T5, T6, T7, T8)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
T2: Transducer<Input = A>,
T3: Transducer<Input = A>,
T4: Transducer<Input = A>,
T5: Transducer<Input = A>,
T6: Transducer<Input = A>,
T7: Transducer<Input = A>,
T8: Transducer<Input = A>,
impl<A, T0, T1, T2, T3, T4, T5, T6, T7, T8> Transducer for IntersectionTransducer<(T0, T1, T2, T3, T4, T5, T6, T7, T8)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
T2: Transducer<Input = A>,
T3: Transducer<Input = A>,
T4: Transducer<Input = A>,
T5: Transducer<Input = A>,
T6: Transducer<Input = A>,
T7: Transducer<Input = A>,
T8: Transducer<Input = A>,
type Input = A
type Output = (<T0 as Transducer>::Output, <T1 as Transducer>::Output, <T2 as Transducer>::Output, <T3 as Transducer>::Output, <T4 as Transducer>::Output, <T5 as Transducer>::Output, <T6 as Transducer>::Output, <T7 as Transducer>::Output, <T8 as Transducer>::Output)
type State = (<T0 as Transducer>::State, <T1 as Transducer>::State, <T2 as Transducer>::State, <T3 as Transducer>::State, <T4 as Transducer>::State, <T5 as Transducer>::State, <T6 as Transducer>::State, <T7 as Transducer>::State, <T8 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, ) -> ChainTransducer<(Self, MapTransducer<Self::Output, U, F>)>
fn filter_map<U, F>( self, f: F, ) -> ChainTransducer<(Self, FilterMapTransducer<Self::Output, U, F>)>
Source§impl<A, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> Transducer for IntersectionTransducer<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
T2: Transducer<Input = A>,
T3: Transducer<Input = A>,
T4: Transducer<Input = A>,
T5: Transducer<Input = A>,
T6: Transducer<Input = A>,
T7: Transducer<Input = A>,
T8: Transducer<Input = A>,
T9: Transducer<Input = A>,
impl<A, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> Transducer for IntersectionTransducer<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)>where
T0: Transducer<Input = A>,
T1: Transducer<Input = A>,
T2: Transducer<Input = A>,
T3: Transducer<Input = A>,
T4: Transducer<Input = A>,
T5: Transducer<Input = A>,
T6: Transducer<Input = A>,
T7: Transducer<Input = A>,
T8: Transducer<Input = A>,
T9: Transducer<Input = A>,
type Input = A
type Output = (<T0 as Transducer>::Output, <T1 as Transducer>::Output, <T2 as Transducer>::Output, <T3 as Transducer>::Output, <T4 as Transducer>::Output, <T5 as Transducer>::Output, <T6 as Transducer>::Output, <T7 as Transducer>::Output, <T8 as Transducer>::Output, <T9 as Transducer>::Output)
type State = (<T0 as Transducer>::State, <T1 as Transducer>::State, <T2 as Transducer>::State, <T3 as Transducer>::State, <T4 as Transducer>::State, <T5 as Transducer>::State, <T6 as Transducer>::State, <T7 as Transducer>::State, <T8 as Transducer>::State, <T9 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, ) -> 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<Tuple> Freeze for IntersectionTransducer<Tuple>where
Tuple: Freeze,
impl<Tuple> RefUnwindSafe for IntersectionTransducer<Tuple>where
Tuple: RefUnwindSafe,
impl<Tuple> Send for IntersectionTransducer<Tuple>where
Tuple: Send,
impl<Tuple> Sync for IntersectionTransducer<Tuple>where
Tuple: Sync,
impl<Tuple> Unpin for IntersectionTransducer<Tuple>where
Tuple: Unpin,
impl<Tuple> UnwindSafe for IntersectionTransducer<Tuple>where
Tuple: 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