Struct Alternation
struct Alternation { ... }
An alternation of regular expressions.
Fields
span: SpanThe span of this alternation.
asts: Vec<Ast>The alternate regular expressions.
Implementations
impl Alternation
fn into_ast(self: Self) -> AstReturn this alternation as an AST.
If this alternation contains zero ASTs, then
Ast::emptyis returned. If this alternation contains exactly 1 AST, then the corresponding AST is returned. Otherwise,Ast::alternationis returned.
impl Clone for Alternation
fn clone(self: &Self) -> Alternation
impl Debug for Alternation
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for Alternation
impl Freeze for Alternation
impl PartialEq for Alternation
fn eq(self: &Self, other: &Alternation) -> bool
impl RefUnwindSafe for Alternation
impl Send for Alternation
impl StructuralPartialEq for Alternation
impl Sync for Alternation
impl Unpin for Alternation
impl UnsafeUnpin for Alternation
impl UnwindSafe for Alternation
impl<T> Any for Alternation
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Alternation
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Alternation
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Alternation
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for Alternation
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Alternation
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for Alternation
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Alternation
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Alternation
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>