pub enum Value {
Int(i64),
Float(f64),
String(String),
Ptr(*mut u8),
Null,
}Expand description
Represents a value that can be passed to or returned from a LASM function.
Variants§
Int(i64)
Float(f64)
String(String)
A string value, high level, gets converted to a pointer when passed to the LASM function. String gets never returned.
Ptr(*mut u8)
Null
Implementations§
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 UnsafeUnpin 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