pub struct CompilationMessage {
pub message: String,
pub message_type: CompilationMessageType,
pub location: Option<SourceLocation>,
}
Expand description
A single message from the shader compilation process.
Roughly corresponds to GPUCompilationMessage
,
except that the location uses UTF-8 for all positions.
Fields§
§message: String
The text of the message.
message_type: CompilationMessageType
The type of the message.
location: Option<SourceLocation>
Where in the source code the message points at.
Trait Implementations§
Source§impl Clone for CompilationMessage
impl Clone for CompilationMessage
Source§fn clone(&self) -> CompilationMessage
fn clone(&self) -> CompilationMessage
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 moreAuto Trait Implementations§
impl Freeze for CompilationMessage
impl RefUnwindSafe for CompilationMessage
impl Send for CompilationMessage
impl Sync for CompilationMessage
impl Unpin for CompilationMessage
impl UnwindSafe for CompilationMessage
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