[−][src]Struct fr::ir::Value
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: u32
reference_depth: u32
number_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]
fn partial_cmp(&self, other: &Value) -> Option<Ordering>
[src]
fn lt(&self, other: &Value) -> bool
[src]
fn le(&self, other: &Value) -> bool
[src]
fn gt(&self, other: &Value) -> bool
[src]
fn ge(&self, other: &Value) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,