pub struct Compiled {
pub image: Option<Vec<u8>>,
pub unspecified: Vec<(usize, usize)>,
pub diagnostics: Vec<Diagnostic>,
pub symbols: Vec<RuntimeSymbol>,
pub macros: Vec<LinkMacro>,
}Expand description
What came of compiling.
Fields§
§image: Option<Vec<u8>>The image, unless there were errors.
unspecified: Vec<(usize, usize)>Stretches of the image, as offset and length, whose contents mean nothing to a program: the time it was compiled, bytes that are the compiler’s own, and fields that are written but never read. Two images of the same program can differ there.
diagnostics: Vec<Diagnostic>The problems found.
symbols: Vec<RuntimeSymbol>The program’s global symbols, each with its value in the image,
in the order of the reference’s table of them when the program
is put together: what globalSymbols() gives a program run before
its image is written.
macros: Vec<LinkMacro>The program’s macros, likewise: what
globalSymbols(MacroTable) gives it.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Compiled
impl Freeze for Compiledwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(usize, usize)>: Freeze,
PhantomData<Diagnostic>: Freeze,
PhantomData<RuntimeSymbol>: Freeze,
PhantomData<LinkMacro>: Freeze,
impl Move for Compiled
impl RefUnwindSafe for Compiled
impl Send for Compiledwhere
RawVecInner: Send,
impl Sync for Compiledwhere
RawVecInner: Sync,
impl Unpin for Compiled
impl UnsafeUnpin for Compiledwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(usize, usize)>: UnsafeUnpin,
PhantomData<Diagnostic>: UnsafeUnpin,
PhantomData<RuntimeSymbol>: UnsafeUnpin,
PhantomData<LinkMacro>: UnsafeUnpin,
impl UnwindSafe for Compiledwhere
RawVecInner: UnwindSafe,
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