pub enum Flavor {
SquirrelRespawn,
Squirrel3,
}Expand description
A flavor of Squirrel to parse.
This allows the lexer and parser to adapt to incompatibilities in the variants.
For example, Respawn’s Squirrel variant adds some tokens which would be valid identifiers in Squirrel 3.
In general however, if the addition of a construct in one variant does not make valid code in another variant unparsable, it will not be gated by the flavor.
Variants§
Trait Implementations§
impl Copy for Flavor
impl Eq for Flavor
impl StructuralPartialEq for Flavor
Auto Trait Implementations§
impl Freeze for Flavor
impl RefUnwindSafe for Flavor
impl Send for Flavor
impl Sync for Flavor
impl Unpin for Flavor
impl UnwindSafe for Flavor
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