Trait Coe

Source
pub trait Coe<C: CtxSpec>: Sized {
    // Required methods
    fn coe(self) -> Value<C>;
    fn uncoe(x: Value<C>) -> Result<Self>;
}

Required Methods§

Source

fn coe(self) -> Value<C>

Source

fn uncoe(x: Value<C>) -> Result<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<C: CtxSpec> Coe<C> for f32

Source§

fn coe(self) -> Value<C>

Source§

fn uncoe(x: Value<C>) -> Result<Self>

Source§

impl<C: CtxSpec> Coe<C> for f64

Source§

fn coe(self) -> Value<C>

Source§

fn uncoe(x: Value<C>) -> Result<Self>

Source§

impl<C: CtxSpec> Coe<C> for u32

Source§

fn coe(self) -> Value<C>

Source§

fn uncoe(x: Value<C>) -> Result<Self>

Source§

impl<C: CtxSpec> Coe<C> for u64

Source§

fn coe(self) -> Value<C>

Source§

fn uncoe(x: Value<C>) -> Result<Self>

Source§

impl<C: CtxSpec, D: Coe<C>> Coe<C> for Option<D>

Source§

fn coe(self) -> Value<C>

Source§

fn uncoe(x: Value<C>) -> Result<Self>

Implementors§

Source§

impl<C: CtxSpec + 'static, A: CoeVec<C> + 'static, B: CoeVec<C> + 'static> Coe<C> for Df<A, B, C>

Source§

impl<C: CtxSpec> Coe<C> for Value<C>