[][src]Struct nodespeak::llvmir::structure::Program

pub struct Program { /* fields omitted */ }

Implementations

impl Program[src]

pub fn new(
    context: LLVMContextRef,
    module: LLVMModuleRef,
    in_type: LLVMTypeRef,
    out_type: LLVMTypeRef,
    static_type: LLVMTypeRef,
    error_descriptions: Vec<String>
) -> Self
[src]

After this, the prrogram will handle dropping the module and context automatically.

pub unsafe fn create_static_data(&self) -> Result<StaticData, &str>[src]

pub unsafe fn reinit_static_data(
    &self,
    data: &mut StaticData
) -> Result<(), &str>
[src]

pub unsafe fn execute_data<T: Sized, U: Sized>(
    &self,
    input_data: &mut T,
    output_data: &mut U,
    static_data: &mut StaticData
) -> Result<(), &str>
[src]

pub unsafe fn execute_raw(
    &self,
    input_data: &mut [u8],
    output_data: &mut [u8],
    static_data: &mut StaticData
) -> Result<(), &str>
[src]

Trait Implementations

impl Debug for Program[src]

impl Drop for Program[src]

Auto Trait Implementations

impl RefUnwindSafe for Program

impl !Send for Program

impl !Sync for Program

impl Unpin for Program

impl UnwindSafe for Program

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, 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.