Trait pax_runtime::api::ToFromPaxValue

source ·
pub trait ToFromPaxValue: Sized + 'static {
    // Required methods
    fn to_pax_value(self) -> PaxValue;
    fn from_pax_value(pax_value: PaxValue) -> Result<Self, String>;
    fn ref_from_pax_value(pax_value: &PaxValue) -> Result<&Self, String>;
    fn mut_from_pax_value(pax_value: &mut PaxValue) -> Result<&mut Self, String>;
}
Expand description

This trait is implemented by all types that has a bultin equivalent representation (see to_from_impls module) This is NOT responsible for coercing between types, but returns an err in all cases where the underlying type is not exactly what is expected

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToFromPaxValue for bool

source§

impl ToFromPaxValue for f32

source§

impl ToFromPaxValue for f64

source§

impl ToFromPaxValue for i8

source§

impl ToFromPaxValue for i16

source§

impl ToFromPaxValue for i32

source§

impl ToFromPaxValue for i64

source§

impl ToFromPaxValue for isize

source§

impl ToFromPaxValue for u8

source§

impl ToFromPaxValue for u16

source§

impl ToFromPaxValue for u32

source§

impl ToFromPaxValue for u64

source§

impl ToFromPaxValue for usize

source§

impl ToFromPaxValue for String

source§

impl<T> ToFromPaxValue for Vec<T>
where T: ToFromPaxAny + 'static,

Implementors§