pub struct HirProgram(/* private fields */);
Implementations§
Source§impl HirProgram
impl HirProgram
pub const MINIMUM_MEMORY_SIZE: i32 = 128i32
pub fn new(decls: Vec<HirDeclaration>, memory_size: i32) -> Self
pub fn get_declarations(&self) -> &Vec<HirDeclaration>
pub fn extend_declarations(&mut self, decls: &Vec<HirDeclaration>)
pub fn use_std(&self) -> bool
pub fn generate_docs( &self, filename: String, target: &impl Target, constants: &mut BTreeMap<String, HirConstant>, ignore_header: bool, ) -> String
pub fn compile( &mut self, cwd: &PathBuf, target: &impl Target, constants: &mut BTreeMap<String, HirConstant>, ) -> Result<MirProgram, HirError>
Trait Implementations§
Source§impl Clone for HirProgram
impl Clone for HirProgram
Source§fn clone(&self) -> HirProgram
fn clone(&self) -> HirProgram
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for HirProgram
impl RefUnwindSafe for HirProgram
impl Send for HirProgram
impl Sync for HirProgram
impl Unpin for HirProgram
impl UnwindSafe for HirProgram
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