[][src]Struct fst::automaton::Union

pub struct Union<A, B>(_, _);

An automaton that matches when one of its component automata match.

Trait Implementations

impl<A: Automaton, B: Automaton> Automaton for Union<A, B>[src]

type State = UnionState<A, B>

The type of the state used in the automaton.

fn starts_with(self) -> StartsWith<Self> where
    Self: Sized
[src]

Returns an automaton that matches the strings that start with something this automaton matches. Read more

fn union<Rhs: Automaton>(self, rhs: Rhs) -> Union<Self, Rhs> where
    Self: Sized
[src]

Returns an automaton that matches the strings matched by either this or the other automaton. Read more

fn intersection<Rhs: Automaton>(self, rhs: Rhs) -> Intersection<Self, Rhs> where
    Self: Sized
[src]

Returns an automaton that matches the strings matched by both this and the other automaton. Read more

fn complement(self) -> Complement<Self> where
    Self: Sized
[src]

Returns an automaton that matches the strings not matched by this automaton. Read more

impl<A: Clone, B: Clone> Clone for Union<A, B>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<A: Debug, B: Debug> Debug for Union<A, B>[src]

Auto Trait Implementations

impl<A, B> Unpin for Union<A, B> where
    A: Unpin,
    B: Unpin

impl<A, B> Sync for Union<A, B> where
    A: Sync,
    B: Sync

impl<A, B> Send for Union<A, B> where
    A: Send,
    B: Send

impl<A, B> RefUnwindSafe for Union<A, B> where
    A: RefUnwindSafe,
    B: RefUnwindSafe

impl<A, B> UnwindSafe for Union<A, B> where
    A: UnwindSafe,
    B: UnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]