Trait pax_runtime_api::pax_value::ToFromPaxAny

source ·
pub trait ToFromPaxAny
where Self: Sized + 'static,
{ // Required methods fn to_pax_any(self) -> PaxAny; fn from_pax_any(pax_any: PaxAny) -> Result<Self, String>; fn ref_from_pax_any(pax_any: &PaxAny) -> Result<&Self, String>; fn mut_from_pax_any(pax_any: &mut PaxAny) -> Result<&mut Self, String>; }
Expand description

Trait that marks a type as being representable as a PaxAny, and provides the implementation for going to/from that type. For all builtins this means going to/from a pax value. For others to a Box. This is automatically Implemented for PaxValue types through the macro impl_to_from_pax_value!, and for other types by implementing the marker trait ImplToFromPaxAny.

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToFromPaxAny for bool

source§

impl ToFromPaxAny for f32

source§

impl ToFromPaxAny for f64

source§

impl ToFromPaxAny for i8

source§

impl ToFromPaxAny for i16

source§

impl ToFromPaxAny for i32

source§

impl ToFromPaxAny for i64

source§

impl ToFromPaxAny for isize

source§

impl ToFromPaxAny for u8

source§

impl ToFromPaxAny for u16

source§

impl ToFromPaxAny for u32

source§

impl ToFromPaxAny for u64

source§

impl ToFromPaxAny for usize

source§

impl ToFromPaxAny for String

source§

impl<T: ToFromPaxAny> ToFromPaxAny for Vec<T>

Implementors§