[−][src]Struct shaderc::CompilationArtifact
An opaque object containing the results of compilation.
Methods
impl CompilationArtifact
[src]
pub fn len(&self) -> usize
[src]
Returns the number of bytes of the compilation output data.
pub fn as_binary(&self) -> &[u32]
[src]
Returns the compilation output data as a binary slice.
Panics
This method will panic if the compilation does not generate a binary output.
pub fn as_binary_u8(&self) -> &[u8]
[src]
Returns the compilation output data as a binary slice. This method return a &[u8] that implement the Read trait.
Panics
This method will panic if the compilation does not generate a binary output.
pub fn as_text(&self) -> String
[src]
Returns the compilation output data as a text string.
Panics
This method will panic if the compilation does not generate a text output.
pub fn get_num_warnings(&self) -> u32
[src]
Returns the number of warnings generated during the compilation.
pub fn get_warning_messages(&self) -> String
[src]
Returns the detailed warnings as a string.
Trait Implementations
impl Drop for CompilationArtifact
[src]
Auto Trait Implementations
impl !Send for CompilationArtifact
impl Unpin for CompilationArtifact
impl !Sync for CompilationArtifact
impl UnwindSafe for CompilationArtifact
impl RefUnwindSafe for CompilationArtifact
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,