Trait pax_runtime_api::pax_value::ToFromPaxAny
source · pub trait ToFromPaxAnywhere
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
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>
Object Safety§
This trait is not object safe.