Enum glsl_lang_pp::processor::event::ProcessingErrorKind
source · pub enum ProcessingErrorKind {
Show 26 variants
ExtraEndIf,
ExtraElse,
ExtraElif,
ProtectedDefine {
ident: SmolStr,
is_undef: bool,
},
ErrorDirective {
message: String,
},
UnterminatedMacroInvocation {
ident: SmolStr,
},
UnexpectedDirective {
ident: SmolStr,
node: SendNode,
},
MismatchedArguments {
ident: SmolStr,
expected: usize,
actual: usize,
},
IncludeNotSupported,
IncludeNotFound {
path: ParsedPath,
},
InvalidTokenPaste {
token: Option<SmolStr>,
},
CppStyleLineNotSupported,
DirectiveVersion(VersionError),
DirectiveExtension(ExtensionError),
DirectiveDefine(DefineError),
DirectiveIfDef(IfDefError),
DirectiveIfNDef(IfDefError),
DirectiveIf(IfError),
DirectiveElif(ElifError),
DirectiveElse(ElseError),
DirectiveEndIf(EndIfError),
DirectiveUndef(IfDefError),
DirectiveError(ErrorError),
DirectiveInclude(IncludeError),
DirectiveLine(LineError),
DirectivePragma(PragmaError),
}
Variants§
ExtraEndIf
ExtraElse
ExtraElif
ProtectedDefine
ErrorDirective
UnterminatedMacroInvocation
Fields
§
ident: SmolStr
UnexpectedDirective
MismatchedArguments
IncludeNotSupported
IncludeNotFound
Fields
§
path: ParsedPath
InvalidTokenPaste
CppStyleLineNotSupported
DirectiveVersion(VersionError)
DirectiveExtension(ExtensionError)
DirectiveDefine(DefineError)
DirectiveIfDef(IfDefError)
DirectiveIfNDef(IfDefError)
DirectiveIf(IfError)
DirectiveElif(ElifError)
DirectiveElse(ElseError)
DirectiveEndIf(EndIfError)
DirectiveUndef(IfDefError)
DirectiveError(ErrorError)
DirectiveInclude(IncludeError)
DirectiveLine(LineError)
DirectivePragma(PragmaError)
Trait Implementations§
source§impl Clone for ProcessingErrorKind
impl Clone for ProcessingErrorKind
source§fn clone(&self) -> ProcessingErrorKind
fn clone(&self) -> ProcessingErrorKind
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 ProcessingErrorKind
impl Debug for ProcessingErrorKind
source§impl Display for ProcessingErrorKind
impl Display for ProcessingErrorKind
source§impl Error for ProcessingErrorKind
impl Error for ProcessingErrorKind
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
source§impl From<(SmolStr, SendNode)> for ProcessingErrorKind
impl From<(SmolStr, SendNode)> for ProcessingErrorKind
source§impl From<(SmolStr, bool)> for ProcessingErrorKind
impl From<(SmolStr, bool)> for ProcessingErrorKind
source§impl From<DefineError> for ProcessingErrorKind
impl From<DefineError> for ProcessingErrorKind
source§fn from(value: DefineError) -> Self
fn from(value: DefineError) -> Self
Converts to this type from the input type.
source§impl From<ElifError> for ProcessingErrorKind
impl From<ElifError> for ProcessingErrorKind
source§impl From<ElseError> for ProcessingErrorKind
impl From<ElseError> for ProcessingErrorKind
source§impl From<EndIfError> for ProcessingErrorKind
impl From<EndIfError> for ProcessingErrorKind
source§fn from(value: EndIfError) -> Self
fn from(value: EndIfError) -> Self
Converts to this type from the input type.
source§impl From<ErrorError> for ProcessingErrorKind
impl From<ErrorError> for ProcessingErrorKind
source§fn from(value: ErrorError) -> Self
fn from(value: ErrorError) -> Self
Converts to this type from the input type.
source§impl From<ExtensionError> for ProcessingErrorKind
impl From<ExtensionError> for ProcessingErrorKind
source§fn from(value: ExtensionError) -> Self
fn from(value: ExtensionError) -> Self
Converts to this type from the input type.
source§impl From<IfDefError> for ProcessingErrorKind
impl From<IfDefError> for ProcessingErrorKind
source§fn from(value: IfDefError) -> Self
fn from(value: IfDefError) -> Self
Converts to this type from the input type.
source§impl From<IfError> for ProcessingErrorKind
impl From<IfError> for ProcessingErrorKind
source§impl From<IfError> for ProcessingErrorKind
impl From<IfError> for ProcessingErrorKind
source§impl From<IncludeError> for ProcessingErrorKind
impl From<IncludeError> for ProcessingErrorKind
source§fn from(value: IncludeError) -> Self
fn from(value: IncludeError) -> Self
Converts to this type from the input type.
source§impl From<LineError> for ProcessingErrorKind
impl From<LineError> for ProcessingErrorKind
source§impl From<Option<SmolStr>> for ProcessingErrorKind
impl From<Option<SmolStr>> for ProcessingErrorKind
source§impl From<ParsedPath> for ProcessingErrorKind
impl From<ParsedPath> for ProcessingErrorKind
source§fn from(value: ParsedPath) -> Self
fn from(value: ParsedPath) -> Self
Converts to this type from the input type.
source§impl From<PragmaError> for ProcessingErrorKind
impl From<PragmaError> for ProcessingErrorKind
source§fn from(value: PragmaError) -> Self
fn from(value: PragmaError) -> Self
Converts to this type from the input type.
source§impl From<ProcessingErrorKind> for ErrorKind
impl From<ProcessingErrorKind> for ErrorKind
source§fn from(value: ProcessingErrorKind) -> Self
fn from(value: ProcessingErrorKind) -> Self
Converts to this type from the input type.
source§impl From<SmolStr> for ProcessingErrorKind
impl From<SmolStr> for ProcessingErrorKind
source§impl From<String> for ProcessingErrorKind
impl From<String> for ProcessingErrorKind
source§impl From<VersionError> for ProcessingErrorKind
impl From<VersionError> for ProcessingErrorKind
source§fn from(value: VersionError) -> Self
fn from(value: VersionError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ProcessingErrorKind
impl PartialEq for ProcessingErrorKind
impl Eq for ProcessingErrorKind
impl StructuralPartialEq for ProcessingErrorKind
Auto Trait Implementations§
impl Freeze for ProcessingErrorKind
impl RefUnwindSafe for ProcessingErrorKind
impl Send for ProcessingErrorKind
impl Sync for ProcessingErrorKind
impl Unpin for ProcessingErrorKind
impl UnwindSafe for ProcessingErrorKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more