Enum rincon_core::api::types::Value
[−]
[src]
pub enum Value { String(String), Bool(bool), F64(f64), F32(f32), ISize(isize), I64(i64), I32(i32), I16(i16), I8(i8), USize(usize), U64(u64), U32(u32), U16(u16), U8(u8), VecString(Vec<String>), VecBool(Vec<bool>), VecF64(Vec<f64>), VecF32(Vec<f32>), VecISize(Vec<isize>), VecI64(Vec<i64>), VecI32(Vec<i32>), VecI16(Vec<i16>), VecI8(Vec<i8>), VecUSize(Vec<usize>), VecU64(Vec<u64>), VecU32(Vec<u32>), VecU16(Vec<u16>), VecU8(Vec<u8>), }
Defines the type of the value of a parameter for methods and queries.
Variants
String(String)
A string value
Bool(bool)
A bool value
F64(f64)
A 64bit float value
F32(f32)
A 32bit float value
ISize(isize)
A isize signed integer value
I64(i64)
A 64bit signed integer value
I32(i32)
A 32bit signed integer value
I16(i16)
A 16bit signed integer value
I8(i8)
A 8bit signed integer value
USize(usize)
A usize unsigned integer value
U64(u64)
A 64bit unsigned integer value
U32(u32)
A 32bit unsigned integer value
U16(u16)
A 16bit unsigned integer value
U8(u8)
A 8bit unsigned integer value
VecString(Vec<String>)
A vec of string values
VecBool(Vec<bool>)
A vec of bool values
VecF64(Vec<f64>)
A vec of 64bit float values
VecF32(Vec<f32>)
A vec of 32bit float values
VecISize(Vec<isize>)
A vec of isize signed integer values
VecI64(Vec<i64>)
A vec of 64bit signed integer values
VecI32(Vec<i32>)
A vec of 32bit signed integer values
VecI16(Vec<i16>)
A vec of 16bit signed integer values
VecI8(Vec<i8>)
A vec of 8bit signed integer values
VecUSize(Vec<usize>)
A vec of usize unsigned integer values
VecU64(Vec<u64>)
A vec of 64bit unsigned integer values
VecU32(Vec<u32>)
A vec of 32bit unsigned integer values
VecU16(Vec<u16>)
A vec of 16bit unsigned integer values
VecU8(Vec<u8>)
A vec of 8bit unsigned integer values
Methods
impl Value
[src]
pub fn unwrap<T>(&self) -> &T where
T: UnwrapValue,
[src]
T: UnwrapValue,
Unwraps the value of the underlying type out of this Value
.
Trait Implementations
impl Debug for Value
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Value
[src]
fn clone(&self) -> Value
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Value
[src]
fn eq(&self, __arg_0: &Value) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Value) -> bool
[src]
This method tests for !=
.
impl AsRef<str> for Value
[src]
impl<'a> From<&'a str> for Value
[src]
impl From<String> for Value
[src]
impl From<bool> for Value
[src]
impl From<f64> for Value
[src]
impl From<f32> for Value
[src]
impl From<isize> for Value
[src]
impl From<i64> for Value
[src]
impl From<i32> for Value
[src]
impl From<i16> for Value
[src]
impl From<i8> for Value
[src]
impl From<usize> for Value
[src]
impl From<u64> for Value
[src]
impl From<u32> for Value
[src]
impl From<u16> for Value
[src]
impl From<u8> for Value
[src]
impl<'a> From<Vec<&'a str>> for Value
[src]
impl From<Vec<String>> for Value
[src]
impl From<Vec<bool>> for Value
[src]
impl From<Vec<f64>> for Value
[src]
impl From<Vec<f32>> for Value
[src]
impl From<Vec<isize>> for Value
[src]
impl From<Vec<i64>> for Value
[src]
impl From<Vec<i32>> for Value
[src]
impl From<Vec<i16>> for Value
[src]
impl From<Vec<i8>> for Value
[src]
impl From<Vec<usize>> for Value
[src]
impl From<Vec<u64>> for Value
[src]
impl From<Vec<u32>> for Value
[src]
impl From<Vec<u16>> for Value
[src]
impl From<Vec<u8>> for Value
[src]
impl Display for Value
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more