Enum wolfram_wxf::WolframValue [−][src]
pub enum WolframValue {}Show variants
Skip, Function(Box<WolframValue>, Vec<WolframValue>), String(String), Bytes(Vec<u8>), Symbol(String), Integer8(i8), Integer16(i16), Integer32(i32), Integer64(i64), BigInteger(BigInt), Decimal64([u8; 8]), BigDecimal(String), PackedArray(Vec<WolframValue>), NumericArray(Vec<WolframValue>), Association(BTreeMap<WolframValue, (WolframValue, WolframValue)>), Rule, RuleDelayed,
Variants
Function(Box<WolframValue>, Vec<WolframValue>)
Function with name, args
String(String)
Symbol(String)
Integer8(i8)
Integer16(i16)
Integer32(i32)
Integer64(i64)
BigInteger(BigInt)
Do not use f64
, because partial order cannot be defined
BigDecimal(String)
PackedArray(Vec<WolframValue>)
Need to optimize
NumericArray(Vec<WolframValue>)
Need to optimize
Association(BTreeMap<WolframValue, (WolframValue, WolframValue)>)
Record with key, rule, value
Implementations
impl WolframValue
[src]
impl WolframValue
[src]impl WolframValue
[src]
impl WolframValue
[src]pub fn symbol(s: impl Into<String>) -> WolframValue
[src]
pub fn integer(i: impl Into<BigInt>) -> WolframValue
[src]
pub fn function<T: ToWolfram>(head: &str, args: Vec<T>) -> WolframValue
[src]
pub fn list(v: Vec<WolframValue>) -> WolframValue
[src]
pub fn new_numeric_array()
[src]
pub fn new_packed_array()
[src]
Trait Implementations
impl Clone for WolframValue
[src]
impl Clone for WolframValue
[src]fn clone(&self) -> WolframValue
[src]
fn clone(&self) -> WolframValue
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for WolframValue
[src]
impl Debug for WolframValue
[src]impl Display for WolframValue
[src]
impl Display for WolframValue
[src]impl Ord for WolframValue
[src]
impl Ord for WolframValue
[src]impl PartialEq<WolframValue> for WolframValue
[src]
impl PartialEq<WolframValue> for WolframValue
[src]fn eq(&self, other: &WolframValue) -> bool
[src]
fn eq(&self, other: &WolframValue) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &WolframValue) -> bool
[src]
fn ne(&self, other: &WolframValue) -> bool
[src]This method tests for !=
.
impl PartialOrd<WolframValue> for WolframValue
[src]
impl PartialOrd<WolframValue> for WolframValue
[src]fn partial_cmp(&self, other: &WolframValue) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &WolframValue) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[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]
#[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
impl ToWolfram for WolframValue
[src]
impl ToWolfram for WolframValue
[src]fn to_wolfram(&self) -> WolframValue
[src]
fn to_wolfram_string(&self) -> String
[src]
fn to_wolfram_bytes(&self) -> Vec<u8>
[src]
fn to_wolfram_solid(&self) -> Vec<u8>
[src]
impl Eq for WolframValue
[src]
impl StructuralEq for WolframValue
[src]
impl StructuralPartialEq for WolframValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for WolframValue
impl Send for WolframValue
impl Sync for WolframValue
impl Unpin for WolframValue
impl UnwindSafe for WolframValue
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more