[−][src]Struct hlvm::function::Value
Trait Implementations
impl Div<Value> for Value
[src]
type Output = Value
The resulting type after applying the /
operator.
fn div(self, rhs: Value) -> <Value as Div<Value>>::Output
[src]
impl Not for Value
[src]
type Output = Value
The resulting type after applying the !
operator.
fn not(self) -> <Value as Not>::Output
[src]
impl Ord for Value
[src]
fn cmp(&self, other: &Value) -> Ordering
[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]
clamp
)Restrict a value to a certain interval. Read more
impl Object for Value
[src]
fn new(value_type: Type, contents: Vec<Number>) -> Value
[src]
fn get_type(&self) -> Type
[src]
fn get_list(&self) -> Vec<Value>
[src]
fn get_contents(&self) -> Vec<Number>
[src]
fn get_attributes(&self) -> Table<Value>
[src]
fn get_foreign_function(&self) -> fn(Value) -> Value
[src]
fn set_type(&mut self, value_type: Type)
[src]
fn set_list(&mut self, list: Vec<Value>)
[src]
fn set_contents(&mut self, contents: Vec<Number>)
[src]
fn set_attributes(&mut self, attributes: Table<Value>)
[src]
fn set_foreign_function(&mut self, function: fn(Value) -> 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]
&mut self,
names: Vec<String>,
object: Self
) -> Self
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]
fn clone(&self) -> 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.
fn add(self, rhs: Value) -> <Value as Add<Value>>::Output
[src]
impl Sub<Value> for Value
[src]
type Output = Value
The resulting type after applying the -
operator.
fn sub(self, rhs: Value) -> <Value as Sub<Value>>::Output
[src]
impl Eq for Value
[src]
impl PartialOrd<Value> for Value
[src]
fn partial_cmp(&self, other: &Value) -> Option<Ordering>
[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.
fn mul(self, rhs: Value) -> <Value as Mul<Value>>::Output
[src]
impl Debug for Value
[src]
impl PartialEq<Value> for Value
[src]
impl Rem<Value> for Value
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,