Struct Concat

pub struct Concat { pub span: Span, pub asts: Vec<Ast> }

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) -> 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.

Trait Implementations

impl Clone for Concat

fn clone(&self) -> Self

impl Debug for Concat

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

impl Eq for Concat

impl PartialEq for Concat

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

impl StructuralPartialEq for Concat

Auto Trait Implementations

impl Freeze for Concat

impl RefUnwindSafe for Concat

impl Send for Concat

impl Sync for Concat

impl Unpin for Concat

impl UnsafeUnpin for Concat

impl UnwindSafe for Concat

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> CloneToUninit for Concat where T: Clone,

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

impl<T> From<T> for Concat

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Concat where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(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<U> for Concat where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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