Trait pax_runtime_api::pax_value::CoercionRules

source ·
pub trait CoercionRules
where Self: 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 bool

source§

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

source§

impl CoercionRules for f32

source§

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

source§

impl CoercionRules for f64

source§

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

source§

impl CoercionRules for i8

source§

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

source§

impl CoercionRules for i16

source§

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

source§

impl CoercionRules for i32

source§

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

source§

impl CoercionRules for i64

source§

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

source§

impl CoercionRules for isize

source§

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

source§

impl CoercionRules for u8

source§

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

source§

impl CoercionRules for u16

source§

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

source§

impl CoercionRules for u32

source§

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

source§

impl CoercionRules for u64

source§

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

source§

impl CoercionRules for usize

source§

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

source§

impl CoercionRules for String

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§