Trait radn::rstd::inlining::static_pair::StaticPairSerializable
source · pub trait StaticPairSerializable {
type SA: Serializable;
type SB: Serializable;
// Required methods
fn elements(&self) -> (&Self::SA, &Self::SB);
fn into_elements(self) -> (Self::SA, Self::SB);
}Expand description
Trait to represent serialisation of object’s data. Due to serialisation being Context-free in RADN, this functionality is in a separate trait.
Required Associated Types§
sourcetype SA: Serializable
type SA: Serializable
First element’s type. Must equal StaticPair::A.
sourcetype SB: Serializable
type SB: Serializable
Second element’s type. Must equal StaticPair::B.
Required Methods§
sourcefn into_elements(self) -> (Self::SA, Self::SB)
fn into_elements(self) -> (Self::SA, Self::SB)
Separate into elements.