[−][src]Enum rant::value::RantValue
Rant variable value.
Variants
String(String)
Float(f64)
Integer(i64)
Boolean(bool)
Function(Rc<RantFunction>)
List(RantListRef)
Map(RantMapRef)
Implementations
impl RantValue
[src]
impl RantValue
[src]
pub fn into_rant_int(self) -> RantValue
[src]
pub fn into_rant_float(self) -> RantValue
[src]
pub fn into_rant_string(self) -> RantValue
[src]
pub fn len(&self) -> usize
[src]
pub fn type_name(&self) -> &'static str
[src]
Gets the type name of the value.
pub fn get_by_index(&self, index: i64) -> ValueIndexResult
[src]
pub fn set_by_index(
&mut self,
index: i64,
val: RantValue
) -> ValueIndexSetResult
[src]
&mut self,
index: i64,
val: RantValue
) -> ValueIndexSetResult
pub fn get_by_key(&self, key: &str) -> ValueKeyResult
[src]
pub fn set_by_key(&mut self, key: &str, val: RantValue) -> ValueKeySetResult
[src]
Trait Implementations
impl Add<RantValue> for RantValue
[src]
type Output = RantValue
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
impl Clone for RantValue
[src]
impl Debug for RantValue
[src]
impl Default for RantValue
[src]
impl Display for RantValue
[src]
impl Div<RantValue> for RantValue
[src]
type Output = ValueResult<RantValue>
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self::Output
[src]
impl Eq for RantValue
[src]
impl FromIterator<RantValue> for RantList
[src]
fn from_iter<T: IntoIterator<Item = RantValue>>(iter: T) -> Self
[src]
impl FromRant for RantValue
[src]
fn from_rant(val: RantValue) -> ValueResult<Self>
[src]
fn is_rant_optional() -> bool
[src]
impl Mul<RantValue> for RantValue
[src]
type Output = RantValue
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self::Output
[src]
impl Neg for RantValue
[src]
type Output = RantValue
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl Not for RantValue
[src]
type Output = Self
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
impl PartialEq<RantValue> for RantValue
[src]
impl PartialOrd<RantValue> for RantValue
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Rem<RantValue> for RantValue
[src]
type Output = ValueResult<RantValue>
The resulting type after applying the %
operator.
fn rem(self, rhs: Self) -> Self::Output
[src]
impl Sub<RantValue> for RantValue
[src]
Auto Trait Implementations
impl !RefUnwindSafe for RantValue
impl !Send for RantValue
impl !Sync for RantValue
impl Unpin for RantValue
impl !UnwindSafe for RantValue
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<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,