pub enum ReturnValue {
Int(i32),
UInt(u32),
Long(i64),
ULong(u64),
Float(f32),
Double(f64),
String(String),
Bool(bool),
Void,
VecBytes(Vec<u8>),
}
Expand description
Re-export for ReturnType
enum
Supported return types with values from function calling.
Variants§
Int(i32)
i32
UInt(u32)
u32
Long(i64)
i64
ULong(u64)
u64
Float(f32)
f32
Double(f64)
f64
String(String)
String
Bool(bool)
bool
Void
()
VecBytes(Vec<u8>)
Vec
Trait Implementations§
Source§impl Clone for ReturnValue
impl Clone for ReturnValue
Source§fn clone(&self) -> ReturnValue
fn clone(&self) -> ReturnValue
Returns a copy 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 ReturnValue
impl Debug for ReturnValue
Source§impl PartialEq for ReturnValue
impl PartialEq for ReturnValue
Source§impl TryFrom<&[u8]> for ReturnValue
impl TryFrom<&[u8]> for ReturnValue
Source§impl TryFrom<FunctionCallResult<'_>> for ReturnValue
impl TryFrom<FunctionCallResult<'_>> for ReturnValue
Source§impl TryFrom<ReturnValue> for u32
impl TryFrom<ReturnValue> for u32
impl StructuralPartialEq for ReturnValue
Auto Trait Implementations§
impl Freeze for ReturnValue
impl RefUnwindSafe for ReturnValue
impl Send for ReturnValue
impl Sync for ReturnValue
impl Unpin for ReturnValue
impl UnwindSafe for ReturnValue
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