[][src]Struct lincoln_compiled::Program

pub struct Program { /* fields omitted */ }

Methods

impl Program[src]

pub fn new() -> Self[src]

pub fn iterate_entries(&self) -> impl Iterator<Item = &Entry>[src]

pub fn iterate_externs(&self) -> impl Iterator<Item = &ExternEntry>[src]

pub fn iterate_groups(&self) -> impl Iterator<Item = &SmallVec<[CodeRef; 5]>>[src]

pub fn iterate_exports(&self) -> impl Iterator<Item = &ExportEntry>[src]

pub fn add_extern(&mut self, ent: ExternEntry) -> CodeRef[src]

pub fn add_return(&mut self, variant: u8) -> CodeRef[src]

pub fn add_jump(&mut self, cont: CodeRef, per: Permutation) -> CodeRef[src]

pub fn add_call(
    &mut self,
    call: CodeRef,
    num_args: u8,
    cont: GroupRef
) -> CodeRef
[src]

pub fn add_export(&mut self, name: impl Into<String>, g: GroupRef)[src]

pub fn add_empty_group(&mut self) -> GroupRef[src]

pub fn add_group_entry(
    &mut self,
    grp: GroupRef,
    ent: CodeRef
) -> Result<(), BuildError>
[src]

pub fn get_export_ent(
    &self,
    export_label: impl StringLike,
    variant: u8
) -> Result<CodeRef, Error>
[src]

pub fn get_export(
    &self,
    export_label: impl StringLike
) -> Result<GroupRef, Error>
[src]

pub fn run(
    &self,
    ctx: &mut Context,
    export_label: impl StringLike,
    variant: u8,
    rounds: Option<usize>
) -> Result<(), Error>
[src]

pub fn eval(
    &self,
    ctx: &mut Context,
    ent: &CodeRef
) -> Result<CodeRef, EvalError>
[src]

Trait Implementations

impl Default for Program[src]

impl Debug for Program[src]

impl Serialize for Program[src]

Auto Trait Implementations

impl !Send for Program

impl !Sync for Program

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.