Struct ruru::types::Value
[−]
pub struct Value { pub value: usize, }
Fields
value: usize
Methods
impl Value
fn is_true(&self) -> bool
fn is_false(&self) -> bool
fn is_nil(&self) -> bool
fn is_undef(&self) -> bool
fn is_symbol(&self) -> bool
fn is_fixnum(&self) -> bool
fn is_flonum(&self) -> bool
fn ty(&self) -> ValueType
Trait Implementations
impl PartialEq<Value> for Value
fn eq(&self, __arg_0: &Value) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Value) -> bool
This method tests for !=
.
impl Copy for Value
impl Debug for Value
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for Value
fn clone(&self) -> Value
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more