Enum glsl::syntax::Preprocessor
source · pub enum Preprocessor {
Show 14 variants
Define(PreprocessorDefine),
Else,
ElseIf(PreprocessorElseIf),
EndIf,
Error(PreprocessorError),
If(PreprocessorIf),
IfDef(PreprocessorIfDef),
IfNDef(PreprocessorIfNDef),
Include(PreprocessorInclude),
Line(PreprocessorLine),
Pragma(PreprocessorPragma),
Undef(PreprocessorUndef),
Version(PreprocessorVersion),
Extension(PreprocessorExtension),
}
Expand description
Some basic preprocessor directives.
As it’s important to carry them around the AST because they cannot be substituted in a normal preprocessor (they’re used by GPU’s compilers), those preprocessor directives are available for inspection.
Variants§
Define(PreprocessorDefine)
Else
ElseIf(PreprocessorElseIf)
EndIf
Error(PreprocessorError)
If(PreprocessorIf)
IfDef(PreprocessorIfDef)
IfNDef(PreprocessorIfNDef)
Include(PreprocessorInclude)
Line(PreprocessorLine)
Pragma(PreprocessorPragma)
Undef(PreprocessorUndef)
Version(PreprocessorVersion)
Extension(PreprocessorExtension)
Trait Implementations§
source§impl Clone for Preprocessor
impl Clone for Preprocessor
source§fn clone(&self) -> Preprocessor
fn clone(&self) -> Preprocessor
Returns a copy 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 moresource§impl Debug for Preprocessor
impl Debug for Preprocessor
source§impl Host for Preprocessor
impl Host for Preprocessor
source§impl HostMut for Preprocessor
impl HostMut for Preprocessor
source§fn visit_mut<V>(&mut self, visitor: &mut V)where
V: VisitorMut,
fn visit_mut<V>(&mut self, visitor: &mut V)where V: VisitorMut,
Visit an AST node.
source§impl Parse for Preprocessor
impl Parse for Preprocessor
source§impl PartialEq<Preprocessor> for Preprocessor
impl PartialEq<Preprocessor> for Preprocessor
source§fn eq(&self, other: &Preprocessor) -> bool
fn eq(&self, other: &Preprocessor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.