Coerceable

Trait Coerceable 

Source
pub trait Coerceable<T>
where T: DualNumFloat,
{ // Required methods fn coerce_to(&self) -> T; fn coerce_from(value: T) -> Self; }

Required Methods§

Source

fn coerce_to(&self) -> T

Source

fn coerce_from(value: T) -> 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<T: DualNumFloat> Coerceable<T> for Dual32

Source§

fn coerce_to(&self) -> T

Source§

fn coerce_from(value: T) -> Self

Implementors§