[][src]Struct hlvm::function::Value

pub struct Value { /* fields omitted */ }

Trait Implementations

impl Div<Value> for Value[src]

type Output = Value

The resulting type after applying the / operator.

impl Not for Value[src]

type Output = Value

The resulting type after applying the ! operator.

impl Ord for Value[src]

default fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

default fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

default fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Object for Value[src]

default fn empty_instance() -> Self[src]

default fn from_string(string: String) -> Self[src]

default fn from_str(string: &str) -> Self[src]

default fn from_f64(decimal: f64) -> Self[src]

default fn from_number(n: Number) -> Self[src]

default fn from_instruction(instruction: Instruction) -> Self[src]

default fn from_problem(problem: Problem) -> Self[src]

default fn from_vector(vector: Vec<Self>) -> Self[src]

default fn from_nothing() -> Self[src]

default fn from_function(vector: Vec<Self>) -> Self[src]

default fn from_foreign_function(function: fn(Self) -> Self) -> Self[src]

default fn get_attr(&self, name: String) -> Self[src]

default fn as_number(&self) -> Number[src]

default fn as_usize(&self) -> usize[src]

default fn as_string(&self) -> String[src]

default fn as_list(&self) -> Vec<Self>[src]

default fn as_instruction(&self) -> Instruction[src]

default fn as_instance(&self) -> Table<Self>[src]

default fn as_foreign_function(&self) -> fn(Self) -> Self[src]

default fn set_attr(&mut self, name: String, object: Self)[src]

default fn get_attr_recursive(&mut self, names: Vec<String>) -> Self[src]

default fn set_attr_recursive(
    &mut self,
    names: Vec<String>,
    object: Self
) -> Self
[src]

default fn index(&mut self, index: Self) -> Self[src]

default fn list_push(&mut self, object: Self)[src]

default fn list_pop(&mut self) -> Self[src]

default fn call_foreign_function(&mut self, parameter: Self) -> Self[src]

default fn format(&self) -> String[src]

default fn print(&self)[src]

default fn println(&self)[src]

impl Clone for Value[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Add<Value> for Value[src]

type Output = Value

The resulting type after applying the + operator.

impl Sub<Value> for Value[src]

type Output = Value

The resulting type after applying the - operator.

impl Eq for Value[src]

impl PartialOrd<Value> for Value[src]

#[must_use]
default fn lt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
default fn le(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
default fn gt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
default fn ge(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Display for Value[src]

impl Mul<Value> for Value[src]

type Output = Value

The resulting type after applying the * operator.

impl Debug for Value[src]

impl PartialEq<Value> for Value[src]

impl Rem<Value> for Value[src]

type Output = Value

The resulting type after applying the % operator.

Auto Trait Implementations

impl Send for Value

impl Sync for Value

Blanket Implementations

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]