[−][src]Struct lincoln_compiled::Program
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]
&mut self,
call: CodeRef,
num_args: u8,
cont: GroupRef
) -> CodeRef
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]
&mut self,
grp: GroupRef,
ent: CodeRef
) -> Result<(), BuildError>
pub fn get_export_ent(
&self,
export_label: impl StringLike,
variant: u8
) -> Result<CodeRef, Error>
[src]
&self,
export_label: impl StringLike,
variant: u8
) -> Result<CodeRef, Error>
pub fn get_export(
&self,
export_label: impl StringLike
) -> Result<GroupRef, Error>
[src]
&self,
export_label: impl StringLike
) -> Result<GroupRef, Error>
pub fn run(
&self,
ctx: &mut Context,
export_label: impl StringLike,
variant: u8,
rounds: Option<usize>
) -> Result<(), Error>
[src]
&self,
ctx: &mut Context,
export_label: impl StringLike,
variant: u8,
rounds: Option<usize>
) -> Result<(), Error>
pub fn eval(
&self,
ctx: &mut Context,
ent: &CodeRef
) -> Result<CodeRef, EvalError>
[src]
&self,
ctx: &mut Context,
ent: &CodeRef
) -> Result<CodeRef, EvalError>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,