Struct Concat

struct Concat { ... }

A concatenation of regular expressions.

Fields

span: Span

The span of this concatenation.

asts: Vec<Ast>

The concatenation regular expressions.

Implementations

impl Concat

fn into_ast(self: Self) -> Ast

Return this concatenation as an AST.

If this alternation contains zero ASTs, then Ast::empty is returned. If this alternation contains exactly 1 AST, then the corresponding AST is returned. Otherwise, Ast::concat is returned.

impl Clone for Concat

fn clone(self: &Self) -> Concat

impl Debug for Concat

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for Concat

impl Freeze for Concat

impl PartialEq for Concat

fn eq(self: &Self, other: &Concat) -> bool

impl RefUnwindSafe for Concat

impl Send for Concat

impl StructuralPartialEq for Concat

impl Sync for Concat

impl Unpin for Concat

impl UnsafeUnpin for Concat

impl UnwindSafe for Concat

impl<T> Any for Concat

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Concat

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Concat

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

impl<T> CloneToUninit for Concat

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Concat

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Concat

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Concat

fn into(self: Self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom for Concat

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

impl<T, U> TryInto for Concat

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