Enum wgsl_bindgen::WgslBindgenError
source · pub enum WgslBindgenError {
OptionBuilderError(WgslBindgenOptionBuilderError),
DependencyTreeError(DependencyTreeError),
NagaModuleComposeError {
entry: String,
msg: String,
inner: ComposerErrorInner,
},
ModuleCreationError(CreateModuleError),
WriteOutputError(Error),
OutputFileNotSpecified,
}Expand description
Enum representing the possible errors that can occur in the wgsl_bindgen process.
This enum is used to represent all the different kinds of errors that can occur
when parsing WGSL shaders, generating Rust bindings, or performing other operations
in wgsl_bindgen.
Variants§
OptionBuilderError(WgslBindgenOptionBuilderError)
DependencyTreeError(DependencyTreeError)
NagaModuleComposeError
ModuleCreationError(CreateModuleError)
WriteOutputError(Error)
OutputFileNotSpecified
Trait Implementations§
source§impl Debug for WgslBindgenError
impl Debug for WgslBindgenError
source§impl Diagnostic for WgslBindgenError
impl Diagnostic for WgslBindgenError
source§fn code(&self) -> Option<Box<dyn Display + '_>>
fn code(&self) -> Option<Box<dyn Display + '_>>
Unique diagnostic code that can be used to look up more information
about this
Diagnostic. Ideally also globally unique, and documented
in the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz) is recommended, but more classic codes like
E0123 or enums will work just fine.source§fn help(&self) -> Option<Box<dyn Display + '_>>
fn help(&self) -> Option<Box<dyn Display + '_>>
Additional help text related to this
Diagnostic. Do you have any
advice for the poor soul who’s just run into this issue?source§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
Diagnostic severity. This may be used by
ReportHandlers to change the display format
of this diagnostic. Read moresource§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
Labels to apply to this
Diagnostic’s Diagnostic::source_codesource§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Source code to apply this
Diagnostic’s Diagnostic::labels to.Additional related
Diagnostics.source§fn url(&self) -> Option<Box<dyn Display + '_>>
fn url(&self) -> Option<Box<dyn Display + '_>>
URL to visit for a more detailed explanation/help about this
Diagnostic.source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
The cause of the error.
source§impl Display for WgslBindgenError
impl Display for WgslBindgenError
source§impl Error for WgslBindgenError
impl Error for WgslBindgenError
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()
source§impl From<CreateModuleError> for WgslBindgenError
impl From<CreateModuleError> for WgslBindgenError
source§fn from(source: CreateModuleError) -> Self
fn from(source: CreateModuleError) -> Self
Converts to this type from the input type.
source§impl From<DependencyTreeError> for WgslBindgenError
impl From<DependencyTreeError> for WgslBindgenError
source§fn from(source: DependencyTreeError) -> Self
fn from(source: DependencyTreeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for WgslBindgenError
impl From<Error> for WgslBindgenError
source§impl From<WgslBindgenOptionBuilderError> for WgslBindgenError
impl From<WgslBindgenOptionBuilderError> for WgslBindgenError
source§fn from(source: WgslBindgenOptionBuilderError) -> Self
fn from(source: WgslBindgenOptionBuilderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WgslBindgenError
impl Send for WgslBindgenError
impl Sync for WgslBindgenError
impl Unpin for WgslBindgenError
impl !UnwindSafe for WgslBindgenError
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