pub enum LexicalGoal {
Div,
RegExp,
TemplateTail,
}Expand description
Parser-selected lexical goal governing slash and template recognition.
Variants§
Div
Division or division-assignment is admitted.
RegExp
A regular-expression literal is admitted.
TemplateTail
A template tail follows a substitution.
Trait Implementations§
Source§impl Clone for LexicalGoal
impl Clone for LexicalGoal
Source§fn clone(&self) -> LexicalGoal
fn clone(&self) -> LexicalGoal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LexicalGoal
Source§impl Debug for LexicalGoal
impl Debug for LexicalGoal
impl Eq for LexicalGoal
Source§impl PartialEq for LexicalGoal
impl PartialEq for LexicalGoal
impl StructuralPartialEq for LexicalGoal
Auto Trait Implementations§
impl Freeze for LexicalGoal
impl RefUnwindSafe for LexicalGoal
impl Send for LexicalGoal
impl Sync for LexicalGoal
impl Unpin for LexicalGoal
impl UnsafeUnpin for LexicalGoal
impl UnwindSafe for LexicalGoal
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