pub struct UsonicCore { /* private fields */ }
Expand description
ALU Core extension for USONIC ISA.
Implementations§
Source§impl UsonicCore
impl UsonicCore
Sourcepub fn has_data(&mut self, cat: IoCat, context: &VmContext<'_>) -> bool
pub fn has_data(&mut self, cat: IoCat, context: &VmContext<'_>) -> bool
Checks are there more state values remain in the given category.
Sourcepub fn get_ui_inro(&self) -> u16
pub fn get_ui_inro(&self) -> u16
Get the current index for a destructible input.
Sourcepub fn load(&mut self, cat: IoCat, context: &VmContext<'_>) -> bool
pub fn load(&mut self, cat: IoCat, context: &VmContext<'_>) -> bool
Loads next StateValue
(basing on iterator position from UI
indexes) of a given
category into the EA
-ED
registers, increasing UI
iterator count.
Sourcepub fn set_ed_eb(&mut self, data: Option<(AuthToken, bool)>) -> bool
pub fn set_ed_eb(&mut self, data: Option<(AuthToken, bool)>) -> bool
Sets EA
and EB
registers to the field elements representing the given pair of values.
Sourcepub fn set_ea_ed_opt(&mut self, data: Option<StateValue>) -> bool
pub fn set_ea_ed_opt(&mut self, data: Option<StateValue>) -> bool
Sets EA
-ED
registers to the field elements representing the given value.
Sourcepub fn set_ea_ed(&mut self, data: StateValue)
pub fn set_ea_ed(&mut self, data: StateValue)
Sets EA
-ED
registers to the field elements representing the given value.
Sourcepub fn set_inro_index(&mut self, index: u16)
pub fn set_inro_index(&mut self, index: u16)
Sets UI
register for the destructible input to point at a specific input index.
Trait Implementations§
Source§impl Clone for UsonicCore
impl Clone for UsonicCore
Source§fn clone(&self) -> UsonicCore
fn clone(&self) -> UsonicCore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl CoreExt for UsonicCore
impl CoreExt for UsonicCore
Source§fn with(config: <UsonicCore as CoreExt>::Config) -> UsonicCore
fn with(config: <UsonicCore as CoreExt>::Config) -> UsonicCore
Constructs the core extensions to be added to AluVM core.
Source§fn get(
&self,
reg: <UsonicCore as CoreExt>::Reg,
) -> Option<<<UsonicCore as CoreExt>::Reg as Register>::Value>
fn get( &self, reg: <UsonicCore as CoreExt>::Reg, ) -> Option<<<UsonicCore as CoreExt>::Reg as Register>::Value>
Read the value of a register.
Source§fn clr(&mut self, reg: <UsonicCore as CoreExt>::Reg)
fn clr(&mut self, reg: <UsonicCore as CoreExt>::Reg)
Clear the register by setting it to
None
.Source§impl Debug for UsonicCore
impl Debug for UsonicCore
Source§impl PartialEq for UsonicCore
impl PartialEq for UsonicCore
Source§impl Supercore<GfaCore> for UsonicCore
impl Supercore<GfaCore> for UsonicCore
Source§impl Supercore<NoExt> for UsonicCore
impl Supercore<NoExt> for UsonicCore
impl Copy for UsonicCore
impl Eq for UsonicCore
impl StructuralPartialEq for UsonicCore
Auto Trait Implementations§
impl Freeze for UsonicCore
impl RefUnwindSafe for UsonicCore
impl Send for UsonicCore
impl Sync for UsonicCore
impl Unpin for UsonicCore
impl UnwindSafe for UsonicCore
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.