pub struct CompilationArtifact { /* private fields */ }Expand description
An opaque object containing the results of compilation.
Implementations§
Source§impl CompilationArtifact
impl CompilationArtifact
Sourcepub fn as_binary(&self) -> &[u32]
pub fn as_binary(&self) -> &[u32]
Returns the compilation output data as a binary slice.
§Panics
Panics if the compilation does not generate a binary output.
Sourcepub fn as_binary_u8(&self) -> &[u8] ⓘ
pub fn as_binary_u8(&self) -> &[u8] ⓘ
Sourcepub fn as_text(&self) -> String
pub fn as_text(&self) -> String
Returns the compilation output data as a text string.
§Panics
Panics if the compilation does not generate a text output.
Sourcepub fn get_num_warnings(&self) -> u32
pub fn get_num_warnings(&self) -> u32
Returns the number of warnings generated during the compilation.
Sourcepub fn get_warning_messages(&self) -> String
pub fn get_warning_messages(&self) -> String
Returns the detailed warnings as a string.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompilationArtifact
impl RefUnwindSafe for CompilationArtifact
impl !Send for CompilationArtifact
impl !Sync for CompilationArtifact
impl Unpin for CompilationArtifact
impl UnwindSafe for CompilationArtifact
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