InfParOutput

Struct InfParOutput 

Source
pub struct InfParOutput<T: VarLit> {
    pub state: DynIntVar<T, false>,
    pub memval: DynIntVar<T, false>,
    pub dpval: DynIntVar<T, false>,
    pub memr: BoolVar<T>,
    pub memw: BoolVar<T>,
    pub dpr: BoolVar<T>,
    pub dpw: BoolVar<T>,
    pub dpmove: IntVar<T, U2, false>,
    pub dkind: IntVar<T, U2, false>,
    pub stop: BoolVar<T>,
}
Expand description

Structure that describes machine circuit outputs.

Fields§

§state: DynIntVar<T, false>

Output internal state.

§memval: DynIntVar<T, false>

Output main memory cell value to write to memory.

§dpval: DynIntVar<T, false>

Output data part to write into internal data (memory address or temp buffer).

§memr: BoolVar<T>

Output memory read bit. If true then machine reads memory.

§memw: BoolVar<T>

Output memory write bit. If true then machine writes into memory.

§dpr: BoolVar<T>

Output data part read bit. If true then machine reads internal data.

§dpw: BoolVar<T>

Output data part write bit. If true then machine writes internal data.

§dpmove: IntVar<T, U2, false>

Output data part move. Set move of position for internal data.

§dkind: IntVar<T, U2, false>

Output data kind. Specifies internal data kind that operates machine.

§stop: BoolVar<T>

Output stop machine indicator. If true then machine stops.

Implementations§

Source§

impl InfParOutput<i16>

Source

pub fn new(config: InfParInterfaceConfig) -> Self

Creates circuit output object from interface configuration. All outputs are filled by default values.

Source

pub fn fix_state_len(list: &mut [Self])

Fix internal state length from list of other circuit output objects.

Source

pub fn new_from_dynintvar( config: InfParInterfaceConfig, var: DynIntVar<i16, false>, ) -> Self

Creates new from dynintvar. config is interface configuration. var is variable of all outputs.

Source§

impl InfParOutput<i32>

Source

pub fn new(config: InfParInterfaceConfig) -> Self

Creates circuit output object from interface configuration. All outputs are filled by default values.

Source

pub fn fix_state_len(list: &mut [Self])

Fix internal state length from list of other circuit output objects.

Source

pub fn new_from_dynintvar( config: InfParInterfaceConfig, var: DynIntVar<i32, false>, ) -> Self

Creates new from dynintvar. config is interface configuration. var is variable of all outputs.

Source§

impl InfParOutput<isize>

Source

pub fn new(config: InfParInterfaceConfig) -> Self

Creates circuit output object from interface configuration. All outputs are filled by default values.

Source

pub fn fix_state_len(list: &mut [Self])

Fix internal state length from list of other circuit output objects.

Source

pub fn new_from_dynintvar( config: InfParInterfaceConfig, var: DynIntVar<isize, false>, ) -> Self

Creates new from dynintvar. config is interface configuration. var is variable of all outputs.

Source§

impl<T> InfParOutput<T>
where T: VarLit + Neg<Output = T> + Debug, isize: TryFrom<T>, <T as TryInto<usize>>::Error: Debug, <T as TryFrom<usize>>::Error: Debug, <isize as TryFrom<T>>::Error: Debug,

Source

pub fn to_dynintvar(self) -> DynIntVar<T, false>

Converts to dynintvar variable.

Trait Implementations§

Source§

impl<T: Clone + VarLit> Clone for InfParOutput<T>

Source§

fn clone(&self) -> InfParOutput<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<T> Freeze for InfParOutput<T>

§

impl<T> !RefUnwindSafe for InfParOutput<T>

§

impl<T> !Send for InfParOutput<T>

§

impl<T> !Sync for InfParOutput<T>

§

impl<T> Unpin for InfParOutput<T>

§

impl<T> !UnwindSafe for InfParOutput<T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.