iregex

Struct ClassAlternation

Source
pub struct ClassAlternation<Q, C: MapSource>(/* private fields */);

Implementations§

Source§

impl<Q, C: MapSource> ClassAlternation<Q, C>

Source

pub fn into_map(self) -> C::Map<Q>

Source§

impl<Q, C> ClassAlternation<Q, C>
where Q: Copy + Ord, C: Clone + Eq + Hash + MapSource,

Source

pub fn singleton(class: C, q: Q) -> Self

Source

pub fn insert<T, S: StateBuilder<T, Q, C>>( &mut self, state_builder: &mut S, nfa: &mut NFA<Q, T>, class: C, ) -> Result<Q, S::Error>

Trait Implementations§

Source§

impl<Q, C: MapSource> Default for ClassAlternation<Q, C>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<Q, C> Freeze for ClassAlternation<Q, C>
where <C as MapSource>::Map<Q>: Freeze,

§

impl<Q, C> RefUnwindSafe for ClassAlternation<Q, C>
where <C as MapSource>::Map<Q>: RefUnwindSafe,

§

impl<Q, C> Send for ClassAlternation<Q, C>
where <C as MapSource>::Map<Q>: Send,

§

impl<Q, C> Sync for ClassAlternation<Q, C>
where <C as MapSource>::Map<Q>: Sync,

§

impl<Q, C> Unpin for ClassAlternation<Q, C>
where <C as MapSource>::Map<Q>: Unpin,

§

impl<Q, C> UnwindSafe for ClassAlternation<Q, C>
where <C as MapSource>::Map<Q>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Borrowed for T

Source§

type Owned = T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.