pub struct Intersection {
pub rules: Vec<Rule>,
pub span: Span,
}Expand description
An alternation.
This is a list of alternatives. Each alternative is a Rule.
If an alternative consists of multiple expressions (e.g. 'a' | 'b' 'c'),
that alternative is a Rule::Group. Note that a group’s parentheses are
removed when compiling to a regex if they aren’t required. In other words,
'a' | ('b' 'c') compiles to a|bc.
Fields§
§rules: Vec<Rule>§span: SpanTrait Implementations§
Source§impl Clone for Intersection
impl Clone for Intersection
Source§fn clone(&self) -> Intersection
fn clone(&self) -> Intersection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Intersection
impl RefUnwindSafe for Intersection
impl Send for Intersection
impl Sync for Intersection
impl Unpin for Intersection
impl UnwindSafe for Intersection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more