pub enum Value {
Show 20 variants
Int(IntValue),
Num(f64),
Complex(f64, f64),
Bool(bool),
LogicalArray(LogicalArray),
String(String),
StringArray(StringArray),
CharArray(CharArray),
Tensor(Tensor),
ComplexTensor(ComplexTensor),
Cell(CellArray),
Struct(StructValue),
GpuTensor(GpuTensorHandle),
Object(ObjectInstance),
HandleObject(HandleRef),
Listener(Listener),
FunctionHandle(String),
Closure(Closure),
ClassRef(String),
MException(MException),
}Variants§
Int(IntValue)
Num(f64)
Complex(f64, f64)
Complex scalar value represented as (re, im)
Bool(bool)
LogicalArray(LogicalArray)
String(String)
StringArray(StringArray)
CharArray(CharArray)
Tensor(Tensor)
ComplexTensor(ComplexTensor)
Complex numeric array; same column-major shape semantics as Tensor
Cell(CellArray)
Struct(StructValue)
GpuTensor(GpuTensorHandle)
Object(ObjectInstance)
HandleObject(HandleRef)
Handle-object wrapper providing identity semantics and validity tracking
Listener(Listener)
Event listener handle for events
FunctionHandle(String)
Closure(Closure)
ClassRef(String)
MException(MException)
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more