SerdeIntegerConversion

Trait SerdeIntegerConversion 

Source
pub trait SerdeIntegerConversion<const SIGNED: bool, const VARIABLE: bool, const BITS: u8> {
    // Required method
    fn from(value: &SerdeInteger<SIGNED, VARIABLE, BITS>) -> Self;
}

Required Methods§

Source

fn from(value: &SerdeInteger<SIGNED, VARIABLE, BITS>) -> 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.

Implementors§

Source§

impl<const SIGNED: bool, const VARIABLE: bool, const BITS: u8, T> SerdeIntegerConversion<SIGNED, VARIABLE, BITS> for T
where T: TryFrom<i128>,