[][src]Struct oakc::hir::HirProgram

pub struct HirProgram(_, _);

Implementations

impl HirProgram[src]

pub const MINIMUM_MEMORY_SIZE: i32[src]

pub fn new(decls: Vec<HirDeclaration>, memory_size: i32) -> Self[src]

pub fn get_declarations(&self) -> &Vec<HirDeclaration>[src]

pub fn extend_declarations(&mut self, decls: &Vec<HirDeclaration>)[src]

pub fn use_std(&self) -> bool[src]

pub fn generate_docs(
    &self,
    filename: String,
    target: &impl Target,
    constants: &mut BTreeMap<String, HirConstant>,
    ignore_header: bool
) -> String
[src]

pub fn compile(
    &mut self,
    cwd: &PathBuf,
    target: &impl Target,
    constants: &mut BTreeMap<String, HirConstant>
) -> Result<MirProgram, HirError>
[src]

Trait Implementations

impl Clone for HirProgram[src]

impl Debug for HirProgram[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.