[−][src]Enum piske::value::Value
Value type for run-time memory values.
Variants
String(String)
Storage for string value
Float(f64)
Storage for floating point number value
Int(i64)
Storage for integer number value
Boolean(bool)
Storage for a boolean,
Complex(f64, f64)
Storage for a complex number,
Set(Box<ValueSet>)
Storage for a set
Return(Box<Value>)
Indication of a value returned from a function
Break(Box<Value>)
Indication of a value resulting from a break in a loop
Empty
Indication of empty / null value
Methods
impl Value
[src]
pub fn has_same_type(&self, other: &Value) -> bool
[src]
Returns true if the associated type for this value is the same type as the associated type of the other value. Returns false otherwise.
Trait Implementations
impl PartialOrd<Value> for Value
[src]
fn partial_cmp(&self, other: &Value) -> Option<Ordering>
[src]
#[must_use]
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]
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]
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]
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 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 From<Literal> for Value
[src]
impl<'a> From<&'a Value> for PType
[src]
impl Display for Value
[src]
impl Debug for Value
[src]
impl<'a> Add<&'a Value> for &'a Value
[src]
type Output = Value
The resulting type after applying the +
operator.
fn add(self, rhs: &Value) -> Value
[src]
impl MemoryStore<Value> for Annotation
[src]
fn set(
&mut self,
ident: Identifier,
value: Value
) -> Result<Option<Value>, String>
[src]
&mut self,
ident: Identifier,
value: Value
) -> Result<Option<Value>, String>
fn get(&self, ident: &Identifier) -> Option<Value>
[src]
impl Value for Value
[src]
impl Coerce<PType> for Value
[src]
impl Cast<PType> for Value
[src]
impl Extract<u64> for Value
[src]
impl Extract<usize> for Value
[src]
impl Extract<i64> for Value
[src]
impl Extract<String> for Value
[src]
impl Extract<f64> for Value
[src]
impl Extract<Complex> for Value
[src]
impl BinaryOperator<PType, Value> for InfixOp
[src]
impl UnaryOperator<PType, Value> for PrefixOp
[src]
impl UnaryOperator<PType, Value> for PostfixOp
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
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> Into<U> 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, 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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.