[−][src]Enum over::value::Value
Enum of possible values and their inner types.
Variants
Null
A null value.
Bool(bool)
A boolean value.
Int(BigInt)
A signed integer value.
Frac(BigRational)
A fractional value.
Char(char)
A character value.
Str(String)
A string value.
Arr(Arr)
An array value.
Tup(Tup)
A tuple value.
Obj(Obj)
An object value.
Methods
impl Value
[src]
pub fn is_null(&self) -> bool
[src]
Returns true if this Value
is null.
pub fn get_type(&self) -> Type
[src]
Returns the Type
of this Value
.
pub fn get_bool(&self) -> OverResult<bool>
[src]
Returns the bool
contained in this Value
. Returns an error if this Value
is not Bool
.
pub fn get_int(&self) -> OverResult<BigInt>
[src]
Returns the BigInt
contained in this Value
. Returns an error if this Value
is not Int
.
pub fn get_frac(&self) -> OverResult<BigRational>
[src]
Returns the BigRational
contained in this Value
.
Returns an error if this Value
is not Frac
.
pub fn get_char(&self) -> OverResult<char>
[src]
Returns the char
contained in this Value
. Returns an error if this Value
is not Char
.
pub fn get_str(&self) -> OverResult<String>
[src]
Returns the String
contained in this Value
. Returns an error if this Value
is not Str
.
pub fn get_obj(&self) -> OverResult<Obj>
[src]
Returns the Obj
contained in this Value
. Returns an error if this Value
is not Obj
.
pub fn get_arr(&self) -> OverResult<Arr>
[src]
Returns the Arr
contained in this Value
.
Returns an error if this Value
is not Arr
.
pub fn get_tup(&self) -> OverResult<Tup>
[src]
Returns the Tup
contained in this Value
.
Returns an error if this Value
is not Tup
.
Trait Implementations
impl Clone for Value
[src]
fn clone(&self) -> Value
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Value> for Value
[src]
impl PartialEq<bool> for Value
[src]
fn eq(&self, other: &bool) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for bool
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<BigInt> for Value
[src]
fn eq(&self, other: &BigInt) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for BigInt
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Ratio<BigInt>> for Value
[src]
fn eq(&self, other: &BigRational) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for BigRational
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<char> for Value
[src]
fn eq(&self, other: &char) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for char
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Arr> for Value
[src]
fn eq(&self, other: &Arr) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for Arr
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Tup> for Value
[src]
fn eq(&self, other: &Tup) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for Tup
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Obj> for Value
[src]
fn eq(&self, other: &Obj) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for Obj
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'a> PartialEq<&'a str> for Value
[src]
fn eq(&self, other: &&str) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'a> PartialEq<Value> for &'a str
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<String> for Value
[src]
fn eq(&self, other: &String) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for String
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<usize> for Value
[src]
fn eq(&self, other: &usize) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for usize
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<u8> for Value
[src]
fn eq(&self, other: &u8) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for u8
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<u16> for Value
[src]
fn eq(&self, other: &u16) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for u16
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<u32> for Value
[src]
fn eq(&self, other: &u32) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for u32
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<u64> for Value
[src]
fn eq(&self, other: &u64) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for u64
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<i8> for Value
[src]
fn eq(&self, other: &i8) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for i8
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<i16> for Value
[src]
fn eq(&self, other: &i16) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for i16
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<i32> for Value
[src]
fn eq(&self, other: &i32) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for i32
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<i64> for Value
[src]
fn eq(&self, other: &i64) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl PartialEq<Value> for i64
[src]
fn eq(&self, other: &Value) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl From<bool> for Value
[src]
impl From<usize> for Value
[src]
impl From<u8> for Value
[src]
impl From<u16> for Value
[src]
impl From<u32> for Value
[src]
impl From<u64> for Value
[src]
impl From<i8> for Value
[src]
impl From<i16> for Value
[src]
impl From<i32> for Value
[src]
impl From<i64> for Value
[src]
impl From<BigInt> for Value
[src]
impl From<Ratio<BigInt>> for Value
[src]
fn from(inner: BigRational) -> Self
[src]
impl From<char> for Value
[src]
impl From<String> for Value
[src]
impl<'a> From<&'a str> for Value
[src]
impl From<Arr> for Value
[src]
impl From<Tup> for Value
[src]
impl From<Obj> for Value
[src]
impl Display for Value
[src]
impl Debug for Value
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?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>,