Skip to main content

CoercionRules

Trait 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>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl CoercionRules for String

Source§

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

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<T1: CoercionRules, T2: CoercionRules> CoercionRules for (T1, T2)

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§