pub enum SandboxValue {
I32(i32),
I64(i64),
F32(f32),
F64(f64),
Bytes(Vec<u8>),
String(String),
}Expand description
Value that can be passed to/from sandbox
Variants§
I32(i32)
32-bit integer
I64(i64)
64-bit integer
F32(f32)
32-bit float
F64(f64)
64-bit float
Bytes(Vec<u8>)
Byte buffer (passed via linear memory)
String(String)
String (UTF-8 encoded)
Implementations§
Trait Implementations§
Source§impl Clone for SandboxValue
impl Clone for SandboxValue
Source§fn clone(&self) -> SandboxValue
fn clone(&self) -> SandboxValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SandboxValue
impl Debug for SandboxValue
Source§impl PartialEq for SandboxValue
impl PartialEq for SandboxValue
Source§fn eq(&self, other: &SandboxValue) -> bool
fn eq(&self, other: &SandboxValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SandboxValue
Auto Trait Implementations§
impl Freeze for SandboxValue
impl RefUnwindSafe for SandboxValue
impl Send for SandboxValue
impl Sync for SandboxValue
impl Unpin for SandboxValue
impl UnsafeUnpin for SandboxValue
impl UnwindSafe for SandboxValue
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