Struct naga::front::glsl::ParseErrors
source · 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 WriteColor, source: &str)
pub fn emit_to_writer_with_path( &self, writer: &mut impl WriteColor, source: &str, path: &str )
pub fn emit_to_string(&self, source: &str) -> String
Trait Implementations§
source§impl Clone for ParseErrors
impl Clone for ParseErrors
source§fn clone(&self) -> ParseErrors
fn clone(&self) -> ParseErrors
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 ParseErrors
impl Debug for ParseErrors
source§impl Display for ParseErrors
impl Display for ParseErrors
source§impl Error for ParseErrors
impl Error for ParseErrors
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()
Auto Trait Implementations§
impl RefUnwindSafe for ParseErrors
impl Send for ParseErrors
impl Sync for ParseErrors
impl Unpin 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