pub enum Keyword {
Show 17 variants
If,
Else,
While,
For,
Do,
Return,
Break,
Continue,
Static,
Const,
In,
Out,
InOut,
Struct,
Sampler,
Void,
ShaderBody,
}Expand description
Reserved-word identity. Identifiers that match one of these are
classified at lex time so the parser does a single match instead of a
string comparison.
Variants§
If
Else
While
For
Do
Return
Break
Continue
Static
Const
In
Out
InOut
Struct
Sampler
Void
ShaderBody
shader_body — MD2-specific wrapper. The translator strips it
before parsing, but we keep the keyword so the lexer survives
un-stripped inputs in tests.
Trait Implementations§
impl Copy for Keyword
impl Eq for Keyword
impl StructuralPartialEq for Keyword
Auto Trait Implementations§
impl Freeze for Keyword
impl RefUnwindSafe for Keyword
impl Send for Keyword
impl Sync for Keyword
impl Unpin for Keyword
impl UnwindSafe for Keyword
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