Trait SerdeAmount
pub trait SerdeAmount:
    Sized
    + Copy
    + Sealed {
    // Required methods
    fn ser_sat<S>(
        self,
        s: S,
    ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
       where S: Serializer;
    fn des_sat<'d, D>(d: D) -> Result<Self, <D as Deserializer<'d>>::Error>
       where D: Deserializer<'d>;
    fn ser_btc<S>(
        self,
        s: S,
    ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
       where S: Serializer;
    fn des_btc<'d, D>(d: D) -> Result<Self, <D as Deserializer<'d>>::Error>
       where D: Deserializer<'d>;
}Expand description
This trait is used only to avoid code duplication and naming collisions of the different serde serialization crates.
Required Methods§
fn ser_sat<S>(
    self,
    s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
    S: Serializer,
fn des_sat<'d, D>(d: D) -> Result<Self, <D as Deserializer<'d>>::Error>where
    D: Deserializer<'d>,
fn ser_btc<S>(
    self,
    s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
    S: Serializer,
fn des_btc<'d, D>(d: D) -> Result<Self, <D as Deserializer<'d>>::Error>where
    D: Deserializer<'d>,
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.