struct CxProgram {
code: Vec<u32>,
control_block: Weak<Vec<u32>>,
length: usize,
seed: u32,
}Available on crate features
kirikiri and kirikiri-arc only.Fields§
§code: Vec<u32>§control_block: Weak<Vec<u32>>§length: usize§seed: u32Trait Implementations§
Source§impl ICxProgram for CxProgram
impl ICxProgram for CxProgram
fn execute(&self, hash: u32) -> Result<u32>
fn clear(&mut self)
fn emit_nop(&mut self, count: usize) -> bool
fn emit(&mut self, bytecode: CxByteCode, length: usize) -> bool
fn emit_u32(&mut self, x: u32) -> bool
fn get_random(&mut self) -> u32
fn emit_random(&mut self) -> bool
Auto Trait Implementations§
impl Freeze for CxProgram
impl RefUnwindSafe for CxProgram
impl Send for CxProgram
impl Sync for CxProgram
impl Unpin for CxProgram
impl UnwindSafe for CxProgram
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more