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 · 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
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more