pub enum Error {
DuplicatePointerDefinition {
name: SmolStr,
previous_declaration: String,
},
ArrayedTemplateParameter {
name: SmolStr,
index: usize,
},
UnsupportedPreprocessor(Box<Preprocessor>),
UnsupportedIdl(Box<InitDeclaratorList>),
UndeclaredPointerType(SmolStr),
TransformAsTemplate,
InvalidParameter(usize),
}
Expand description
GLSLT transform error type
Variants§
DuplicatePointerDefinition
Fields
§
name: SmolStr
Name of the duplicated pointer definition
Re-declaration of a function pointer type
ArrayedTemplateParameter
Fields
§
name: SmolStr
Name of the template parameter
Template parameter declared with an array specifier
UnsupportedPreprocessor(Box<Preprocessor>)
Unsupported preprocessor directive in minifying mode
UnsupportedIdl(Box<InitDeclaratorList>)
Unsupported declarator list in minifying mode
UndeclaredPointerType(SmolStr)
Undeclared pointer type
TransformAsTemplate
Could not transform the call from available arguments
InvalidParameter(usize)
Invalid parameter in template argument call
Implementations§
source§impl Error
impl Error
sourcepub fn new_duplicate_pointer_definition(
name: &Identifier,
previous: &FunctionPrototype
) -> Self
pub fn new_duplicate_pointer_definition( name: &Identifier, previous: &FunctionPrototype ) -> Self
Create a new DuplicatePointerDefinition
Parameters
name
: name of the duplicated identifierprevious
: previous declaration of the pointer
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()