DataTrait

Trait DataTrait 

Source
pub trait DataTrait: Serialize {
Show 125 methods // Required methods fn to_i8(&self) -> i8; fn to_i16(&self) -> i16; fn to_i32(&self) -> i32; fn to_i64(&self) -> i64; fn to_i128(&self) -> i128; fn to_u8(&self) -> u8; fn to_u16(&self) -> u16; fn to_u32(&self) -> u32; fn to_u64(&self) -> u64; fn to_u128(&self) -> u128; fn to_f32(&self) -> f32; fn to_f64(&self) -> f64; fn to_bool(&self) -> bool; fn to_byte(&self) -> u8; fn to_char(&self) -> char; fn to_string(&self) -> String; fn try_to_i8(&self) -> Option<i8>; fn try_to_i16(&self) -> Option<i16>; fn try_to_i32(&self) -> Option<i32>; fn try_to_i64(&self) -> Option<i64>; fn try_to_i128(&self) -> Option<i128>; fn try_to_u8(&self) -> Option<u8>; fn try_to_u16(&self) -> Option<u16>; fn try_to_u32(&self) -> Option<u32>; fn try_to_u64(&self) -> Option<u64>; fn try_to_u128(&self) -> Option<u128>; fn try_to_f32(&self) -> Option<f32>; fn try_to_f64(&self) -> Option<f64>; fn try_to_bool(&self) -> Option<bool>; fn try_to_byte(&self) -> Option<u8>; fn try_to_char(&self) -> Option<char>; fn try_to_string(&self) -> Option<String>; fn saturating_to_i8(&self) -> i8; fn saturating_to_i16(&self) -> i16; fn saturating_to_i32(&self) -> i32; fn saturating_to_i64(&self) -> i64; fn saturating_to_i128(&self) -> i128; fn saturating_to_u8(&self) -> u8; fn saturating_to_u16(&self) -> u16; fn saturating_to_u32(&self) -> u32; fn saturating_to_u64(&self) -> u64; fn saturating_to_u128(&self) -> u128; fn saturating_to_f32(&self) -> f32; fn saturating_to_f64(&self) -> f64; fn binary_and(&self, other: &Value) -> Value; fn binary_or(&self, other: &Value) -> Value; fn binary_xor(&self, other: &Value) -> Value; fn binary_not(&self) -> Value; fn signed_abs(&self) -> Option<Value>; fn signed_signum(&self) -> Value; fn signed_is_positive(&self) -> bool; fn signed_is_negative(&self) -> bool; fn float_is_nan(&self) -> bool; fn float_is_infinite(&self) -> bool; fn float_is_finite(&self) -> bool; fn float_is_normal(&self) -> bool; fn float_is_subnormal(&self) -> bool; fn float_floor(&self) -> Value; fn float_ceil(&self) -> Value; fn float_round(&self) -> Value; fn float_trunc(&self) -> Value; fn float_fract(&self) -> Value; fn float_recip(&self) -> Value; fn float_pow(&self, n: &Value) -> Value; fn float_sqrt(&self) -> Value; fn float_exp(&self) -> Value; fn float_exp2(&self) -> Value; fn float_ln(&self) -> Value; fn float_log(&self, base: &Value) -> Value; fn float_log2(&self) -> Value; fn float_log10(&self) -> Value; fn float_cbrt(&self) -> Value; fn float_hypot(&self, n: &Value) -> Value; fn float_sin(&self) -> Value; fn float_cos(&self) -> Value; fn float_tan(&self) -> Value; fn float_asin(&self) -> Value; fn float_acos(&self) -> Value; fn float_atan(&self) -> Value; fn float_atan2(&self, n: &Value) -> Value; fn float_sinh(&self) -> Value; fn float_cosh(&self) -> Value; fn float_tanh(&self) -> Value; fn float_asinh(&self) -> Value; fn float_acosh(&self) -> Value; fn float_atanh(&self) -> Value; fn float_to_degrees(&self) -> Value; fn float_to_radians(&self) -> Value; fn partial_equality_eq(&self, other: &Value) -> bool; fn partial_equality_ne(&self, other: &Value) -> bool; fn partial_order_lt(&self, other: &Value) -> bool; fn partial_order_le(&self, other: &Value) -> bool; fn partial_order_gt(&self, other: &Value) -> bool; fn partial_order_ge(&self, other: &Value) -> bool; fn order_max(&self, other: &Value) -> Value; fn order_min(&self, other: &Value) -> Value; fn order_clamp(&self, min: &Value, max: &Value) -> Value; fn add(&self, other: &Value) -> Value; fn checked_add(&self, other: &Value) -> Option<Value>; fn saturating_add(&self, other: &Value) -> Value; fn wrapping_add(&self, other: &Value) -> Value; fn sub(&self, other: &Value) -> Value; fn checked_sub(&self, other: &Value) -> Option<Value>; fn saturating_sub(&self, other: &Value) -> Value; fn wrapping_sub(&self, other: &Value) -> Value; fn mul(&self, other: &Value) -> Value; fn checked_mul(&self, other: &Value) -> Option<Value>; fn saturating_mul(&self, other: &Value) -> Value; fn wrapping_mul(&self, other: &Value) -> Value; fn div(&self, other: &Value) -> Value; fn checked_div(&self, other: &Value) -> Option<Value>; fn rem(&self, other: &Value) -> Value; fn checked_rem(&self, other: &Value) -> Option<Value>; fn neg(&self) -> Value; fn checked_neg(&self) -> Option<Value>; fn wrapping_neg(&self) -> Value; fn pow(&self, exp: &u32) -> Value; fn checked_pow(&self, exp: &u32) -> Option<Value>; fn euclid_div(&self, other: &Value) -> Value; fn euclid_rem(&self, other: &Value) -> Value; fn checked_euclid_div(&self, other: &Value) -> Option<Value>; fn checked_euclid_rem(&self, other: &Value) -> Option<Value>; fn hash(&self, state: &mut dyn Hasher); fn serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>; fn display(&self, f: &mut Formatter<'_>) -> Result<(), Error>;
}

Required Methods§

Source

fn to_i8(&self) -> i8

Source

fn to_i16(&self) -> i16

Source

fn to_i32(&self) -> i32

Source

fn to_i64(&self) -> i64

Source

fn to_i128(&self) -> i128

Source

fn to_u8(&self) -> u8

Source

fn to_u16(&self) -> u16

Source

fn to_u32(&self) -> u32

Source

fn to_u64(&self) -> u64

Source

fn to_u128(&self) -> u128

Source

fn to_f32(&self) -> f32

Source

fn to_f64(&self) -> f64

Source

fn to_bool(&self) -> bool

Source

fn to_byte(&self) -> u8

Source

fn to_char(&self) -> char

Source

fn to_string(&self) -> String

Source

fn try_to_i8(&self) -> Option<i8>

Source

fn try_to_i16(&self) -> Option<i16>

Source

fn try_to_i32(&self) -> Option<i32>

Source

fn try_to_i64(&self) -> Option<i64>

Source

fn try_to_i128(&self) -> Option<i128>

Source

fn try_to_u8(&self) -> Option<u8>

Source

fn try_to_u16(&self) -> Option<u16>

Source

fn try_to_u32(&self) -> Option<u32>

Source

fn try_to_u64(&self) -> Option<u64>

Source

fn try_to_u128(&self) -> Option<u128>

Source

fn try_to_f32(&self) -> Option<f32>

Source

fn try_to_f64(&self) -> Option<f64>

Source

fn try_to_bool(&self) -> Option<bool>

Source

fn try_to_byte(&self) -> Option<u8>

Source

fn try_to_char(&self) -> Option<char>

Source

fn try_to_string(&self) -> Option<String>

Source

fn saturating_to_i8(&self) -> i8

Source

fn saturating_to_i16(&self) -> i16

Source

fn saturating_to_i32(&self) -> i32

Source

fn saturating_to_i64(&self) -> i64

Source

fn saturating_to_i128(&self) -> i128

Source

fn saturating_to_u8(&self) -> u8

Source

fn saturating_to_u16(&self) -> u16

Source

fn saturating_to_u32(&self) -> u32

Source

fn saturating_to_u64(&self) -> u64

Source

fn saturating_to_u128(&self) -> u128

Source

fn saturating_to_f32(&self) -> f32

Source

fn saturating_to_f64(&self) -> f64

Source

fn binary_and(&self, other: &Value) -> Value

Source

fn binary_or(&self, other: &Value) -> Value

Source

fn binary_xor(&self, other: &Value) -> Value

Source

fn binary_not(&self) -> Value

Source

fn signed_abs(&self) -> Option<Value>

Source

fn signed_signum(&self) -> Value

Source

fn signed_is_positive(&self) -> bool

Source

fn signed_is_negative(&self) -> bool

Source

fn float_is_nan(&self) -> bool

Source

fn float_is_infinite(&self) -> bool

Source

fn float_is_finite(&self) -> bool

Source

fn float_is_normal(&self) -> bool

Source

fn float_is_subnormal(&self) -> bool

Source

fn float_floor(&self) -> Value

Source

fn float_ceil(&self) -> Value

Source

fn float_round(&self) -> Value

Source

fn float_trunc(&self) -> Value

Source

fn float_fract(&self) -> Value

Source

fn float_recip(&self) -> Value

Source

fn float_pow(&self, n: &Value) -> Value

Source

fn float_sqrt(&self) -> Value

Source

fn float_exp(&self) -> Value

Source

fn float_exp2(&self) -> Value

Source

fn float_ln(&self) -> Value

Source

fn float_log(&self, base: &Value) -> Value

Source

fn float_log2(&self) -> Value

Source

fn float_log10(&self) -> Value

Source

fn float_cbrt(&self) -> Value

Source

fn float_hypot(&self, n: &Value) -> Value

Source

fn float_sin(&self) -> Value

Source

fn float_cos(&self) -> Value

Source

fn float_tan(&self) -> Value

Source

fn float_asin(&self) -> Value

Source

fn float_acos(&self) -> Value

Source

fn float_atan(&self) -> Value

Source

fn float_atan2(&self, n: &Value) -> Value

Source

fn float_sinh(&self) -> Value

Source

fn float_cosh(&self) -> Value

Source

fn float_tanh(&self) -> Value

Source

fn float_asinh(&self) -> Value

Source

fn float_acosh(&self) -> Value

Source

fn float_atanh(&self) -> Value

Source

fn float_to_degrees(&self) -> Value

Source

fn float_to_radians(&self) -> Value

Source

fn partial_equality_eq(&self, other: &Value) -> bool

Source

fn partial_equality_ne(&self, other: &Value) -> bool

Source

fn partial_order_lt(&self, other: &Value) -> bool

Source

fn partial_order_le(&self, other: &Value) -> bool

Source

fn partial_order_gt(&self, other: &Value) -> bool

Source

fn partial_order_ge(&self, other: &Value) -> bool

Source

fn order_max(&self, other: &Value) -> Value

Source

fn order_min(&self, other: &Value) -> Value

Source

fn order_clamp(&self, min: &Value, max: &Value) -> Value

Source

fn add(&self, other: &Value) -> Value

Source

fn checked_add(&self, other: &Value) -> Option<Value>

Source

fn saturating_add(&self, other: &Value) -> Value

Source

fn wrapping_add(&self, other: &Value) -> Value

Source

fn sub(&self, other: &Value) -> Value

Source

fn checked_sub(&self, other: &Value) -> Option<Value>

Source

fn saturating_sub(&self, other: &Value) -> Value

Source

fn wrapping_sub(&self, other: &Value) -> Value

Source

fn mul(&self, other: &Value) -> Value

Source

fn checked_mul(&self, other: &Value) -> Option<Value>

Source

fn saturating_mul(&self, other: &Value) -> Value

Source

fn wrapping_mul(&self, other: &Value) -> Value

Source

fn div(&self, other: &Value) -> Value

Source

fn checked_div(&self, other: &Value) -> Option<Value>

Source

fn rem(&self, other: &Value) -> Value

Source

fn checked_rem(&self, other: &Value) -> Option<Value>

Source

fn neg(&self) -> Value

Source

fn checked_neg(&self) -> Option<Value>

Source

fn wrapping_neg(&self) -> Value

Source

fn pow(&self, exp: &u32) -> Value

Source

fn checked_pow(&self, exp: &u32) -> Option<Value>

Source

fn euclid_div(&self, other: &Value) -> Value

Source

fn euclid_rem(&self, other: &Value) -> Value

Source

fn checked_euclid_div(&self, other: &Value) -> Option<Value>

Source

fn checked_euclid_rem(&self, other: &Value) -> Option<Value>

Source

fn hash(&self, state: &mut dyn Hasher)

Source

fn serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source

fn display(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Trait Implementations§

Source§

impl<'erased> Serialize for dyn DataTrait + 'erased

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'erased> Serialize for dyn DataTrait + Send + 'erased

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'erased> Serialize for dyn DataTrait + Sync + Send + 'erased

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'erased> Serialize for dyn DataTrait + Sync + 'erased

Source§

fn serialize<S>( &self, serializer: S, ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§