struct HxProgram {
base: CxProgram,
rng: Box<dyn IRng + Send + Sync>,
}Available on crate features
kirikiri and kirikiri-arc only.Fields§
§base: CxProgram§rng: Box<dyn IRng + Send + Sync>Implementations§
Trait Implementations§
Source§impl ICxProgram for HxProgram
impl ICxProgram for HxProgram
fn execute(&self, hash: u32) -> Result<u32>
fn clear(&mut self)
fn emit(&mut self, bytecode: CxByteCode, length: usize) -> bool
fn emit_nop(&mut self, count: 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 HxProgram
impl !RefUnwindSafe for HxProgram
impl Send for HxProgram
impl Sync for HxProgram
impl Unpin for HxProgram
impl !UnwindSafe for HxProgram
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