pub enum Artifact {
Nothing,
Text(String),
Object(Vec<u8>),
}Expand description
What a compilation produced, which is text for most of the kinds and bytes for one of them.
Two variants rather than a string, because an object file is not text and a Vec<u8> holding
UTF-8 for six kinds and a file format for the seventh would leave every reader guessing which
it had. Artifact::Nothing is what a compilation that stopped early gives back, and it is
not the same as an empty file: nothing is written for it at all.
Variants§
Nothing
The compilation stopped before it produced anything, or the kind asked for produces nothing yet.
Text(String)
Text, which is every kind up to and including assembly.
Object(Vec<u8>)
An object file, which is -c.
Implementations§
Trait Implementations§
impl Eq for Artifact
impl StructuralPartialEq for Artifact
Auto Trait Implementations§
impl Freeze for Artifact
impl RefUnwindSafe for Artifact
impl Send for Artifact
impl Sync for Artifact
impl Unpin for Artifact
impl UnsafeUnpin for Artifact
impl UnwindSafe for Artifact
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.