[−][src]Enum scriptful::core::value::Value
The only data type that can be actually pushed or pulled from a Stack
.
Value
has four variants that should cover most use cases, namely: Boolean
,
Float
, Integer
or String
.
The point of Value
is being used inside Script
s (wrapped in an Item
) or
to be pushed into a Stack
.
As explained in known limitations, "the possible value types that can be pushed into the Stack is not generic nor customizable. Such feature will only be added if someone actually equests it".
Value
does not implement any methods other than implementations of some traits from the
core
crate.
Variants
A binary value: either true
or false
.
A signed floating point value.
A signed integer value.
A string of characters.
Trait Implementations
impl Add<Value> for Value
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
impl Clone for Value
[src]
fn clone(&self) -> Value
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Value
[src]
impl Not for Value
[src]
type Output = Self
The resulting type after applying the !
operator.
fn not(self) -> Self::Output
[src]
impl PartialEq<Value> for Value
[src]
impl Sub<Value> for Value
[src]
Auto Trait Implementations
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, 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>,