pax_runtime_api::pax_value

Trait ToPaxValue

source
pub trait ToPaxValue {
    // Required method
    fn to_pax_value(self) -> PaxValue;
}
Expand description

This trait is implemented by all types that has a builtin 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§

Implementations on Foreign Types§

source§

impl ToPaxValue for bool

source§

impl ToPaxValue for f32

source§

impl ToPaxValue for f64

source§

impl ToPaxValue for i8

source§

impl ToPaxValue for i16

source§

impl ToPaxValue for i32

source§

impl ToPaxValue for i64

source§

impl ToPaxValue for isize

source§

impl ToPaxValue for u8

source§

impl ToPaxValue for u16

source§

impl ToPaxValue for u32

source§

impl ToPaxValue for u64

source§

impl ToPaxValue for usize

source§

impl ToPaxValue for String

source§

impl<T: ToPaxValue + Clone> ToPaxValue for Rc<RefCell<T>>

source§

impl<T: ToPaxValue> ToPaxValue for Option<T>

source§

impl<T: ToPaxValue> ToPaxValue for Vec<T>

source§

impl<T: ToPaxValue> ToPaxValue for Range<T>

Implementors§