Trait pax_runtime::api::CoercionRules

source ·
pub trait CoercionRules: Sized + 'static {
    // Required method
    fn try_coerce(value: PaxValue) -> Result<Self, String>;
}

Required Methods§

source

fn try_coerce(value: PaxValue) -> Result<Self, String>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl CoercionRules for PaxType

source§

impl CoercionRules for bool

source§

impl CoercionRules for f32

source§

impl CoercionRules for f64

source§

impl CoercionRules for i8

source§

impl CoercionRules for i16

source§

impl CoercionRules for i32

source§

impl CoercionRules for i64

source§

impl CoercionRules for isize

source§

impl CoercionRules for u8

source§

impl CoercionRules for u16

source§

impl CoercionRules for u32

source§

impl CoercionRules for u64

source§

impl CoercionRules for usize

source§

impl CoercionRules for String

source§

impl CoercionRules for TemplateNodeId

source§

impl CoercionRules for TypeId

source§

impl<T> CoercionRules for Option<T>
where T: CoercionRules,

source§

impl<T> CoercionRules for Box<T>
where T: CoercionRules,

source§

impl<T> CoercionRules for Vec<T>
where T: CoercionRules,

source§

impl<T> CoercionRules for Range<T>
where T: CoercionRules,

Implementors§