[][src]Struct fr::ir::Value

pub struct Value {
    pub offset: u32,
    pub reference_depth: u32,
    pub number_cells: u32,
}

This object represents a value stored on the tape. Objects can be stored indirectly or directly. In brainfuck compatibility mode, dereferencing or referencing an object is illegal.

Fields

offset: u32reference_depth: u32number_cells: u32

Methods

impl Value[src]

pub fn new(size: u32) -> Result<Self, Error>[src]

pub fn alloc(size: u32) -> Result<Self, Error>[src]

pub fn variable_alloc(size: Self) -> Result<Self, Error>[src]

pub fn copy(&self) -> Result<Self, Error>[src]

pub fn is_ref(&self) -> bool[src]

pub fn zero(&self)[src]

pub fn free(&self)[src]

pub fn set(&self, val: impl Into<usize>)[src]

pub fn assign(&self, val: Self) -> Result<(), Error>[src]

pub fn plus_eq(&self, val: Self)[src]

pub fn minus_eq(&self, val: Self)[src]

pub fn byte_int(value: u8) -> Result<Self, Error>[src]

pub fn unsigned_short(value: u16) -> Result<Self, Error>[src]

pub fn character(value: char) -> Result<Self, Error>[src]

pub fn string(value: impl ToString) -> Result<Self, Error>[src]

pub fn to(&self) -> String[src]

pub fn from(&self) -> String[src]

pub fn size(&self) -> u32[src]

pub fn deref(&self) -> Result<Self, Error>[src]

pub fn refer(&self) -> Result<Self, Error>[src]

Trait Implementations

impl Clone for Value[src]

impl Copy for Value[src]

impl Debug for Value[src]

This is for debugging.

impl Eq for Value[src]

impl Lower for Value[src]

A value can be lowered into a value

impl PartialEq<Value> for Value[src]

impl PartialOrd<Value> for Value[src]

impl StructuralEq for Value[src]

impl StructuralPartialEq for Value[src]

Auto Trait Implementations

impl RefUnwindSafe for Value

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,