pub struct ParseErrors {
pub errors: Vec<Error>,
}Expand description
A collection of errors returned during shader parsing.
Fields§
§errors: Vec<Error>Implementations§
Source§impl ParseErrors
impl ParseErrors
pub fn emit_to_writer(&self, writer: &mut impl ErrorWrite, source: &str)
pub fn emit_to_writer_with_path( &self, writer: &mut impl ErrorWrite, source: &str, path: &str, )
Sourcepub fn emit_to_stderr(&self, source: &str)
pub fn emit_to_stderr(&self, source: &str)
Emits a summary of the errors to standard error stream.
Sourcepub fn emit_to_stderr_with_path(&self, source: &str, path: &str)
pub fn emit_to_stderr_with_path(&self, source: &str, path: &str)
Emits a summary of the errors to standard error stream.
pub fn emit_to_string(&self, source: &str) -> String
pub fn emit_to_string_with_path(&self, source: &str, path: &str) -> String
fn make_diagnostic(err: &Error) -> Diagnostic<()>
Trait Implementations§
Source§impl Clone for ParseErrors
impl Clone for ParseErrors
Source§fn clone(&self) -> ParseErrors
fn clone(&self) -> ParseErrors
Returns a duplicate 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 ParseErrors
impl Debug for ParseErrors
Source§impl Display for ParseErrors
impl Display for ParseErrors
Source§impl Error for ParseErrors
impl Error for ParseErrors
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()
Auto Trait Implementations§
impl Freeze for ParseErrors
impl RefUnwindSafe for ParseErrors
impl Send for ParseErrors
impl Sync for ParseErrors
impl Unpin for ParseErrors
impl UnsafeUnpin for ParseErrors
impl UnwindSafe for ParseErrors
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