Struct forc_pkg::BuiltPackage
source · pub struct BuiltPackage {
pub json_abi_program: JsonABIProgram,
pub storage_slots: Vec<StorageSlot>,
pub bytecode: Vec<u8>,
pub entries: Vec<FinalizedEntry>,
pub tree_type: TreeType,
/* private fields */
}
Expand description
The result of successfully compiling a package.
Fields
json_abi_program: JsonABIProgram
storage_slots: Vec<StorageSlot>
bytecode: Vec<u8>
entries: Vec<FinalizedEntry>
tree_type: TreeType
Implementations
sourceimpl BuiltPackage
impl BuiltPackage
sourcepub fn write_bytecode(&self, path: &Path) -> Result<()>
pub fn write_bytecode(&self, path: &Path) -> Result<()>
Writes bytecode of the BuiltPackage to the given path
.
sourcepub fn write_debug_info(&self, path: &Path) -> Result<()>
pub fn write_debug_info(&self, path: &Path) -> Result<()>
Writes debug_info (source_map) of the BuiltPackage to the given path
.
sourcepub fn write_output(
&self,
minify: MinifyOpts,
pkg_name: &str,
output_dir: &Path
) -> Result<()>
pub fn write_output(
&self,
minify: MinifyOpts,
pkg_name: &str,
output_dir: &Path
) -> Result<()>
Writes BuiltPackage to output_dir
.
Trait Implementations
sourceimpl Clone for BuiltPackage
impl Clone for BuiltPackage
sourcefn clone(&self) -> BuiltPackage
fn clone(&self) -> BuiltPackage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for BuiltPackage
impl Send for BuiltPackage
impl Sync for BuiltPackage
impl Unpin for BuiltPackage
impl UnwindSafe for BuiltPackage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more