/// Serializes the registry contents using the specified version of stable
/// representation.
Serializes the registry contents using the specified version of stable
representation.
Serializes the registry contents using the specified version of stable representation .
fn serializable_form_at(&self, repr_version: ReprVersion) -> RegistryStableStorage {
        match repr_version {
            ReprVersion::Version1 => RegistryStableStorage {
                version: repr_version as i32,
                deltas: vec![],
                changelog: self
                    .changelog
                    .iter()
                    .map(|(encoded_version, bytes)| ChangelogEntry {
                        version: encoded_version.as_version(),
                        encoded_mutation: bytes.clone(),
                    })
                    .collect(),
            },
            ReprVersion::Unspecified => RegistryStableStorage {
                version: repr_version as i32,
                deltas: self
                    .store
                    .iter()
                    .map(|(key, values)| RegistryDelta {
                        key: key.clone(),
                        values: values.iter().cloned().collect(),
                    })
                    .collect(),
                changelog: vec![],
            },
        }
    }
fn serializable_form_at ( & self , repr_version : ReprVersion ) -> RegistryStableStorage { match repr_version { ReprVersion :: Version1 => RegistryStableStorage { version : repr_version as i32 , deltas : vec ! [ ] , changelog : self . changelog . iter ( ) . map ( | ( encoded_version , bytes ) | ChangelogEntry { version : encoded_version . as_version ( ) , encoded_mutation : bytes . clone ( ) , } ) . collect ( ) , } , ReprVersion :: Unspecified => RegistryStableStorage { version : repr_version as i32 , deltas : self . store . iter ( ) . map ( | ( key , values ) | RegistryDelta { key : key . clone ( ) , values : values . iter ( ) . cloned ( ) . collect ( ) , } ) . collect ( ) , changelog : vec ! [ ] , } , } }
Serializes the registry contents using the specified version of stable
representation.
Serializes the registry contents using the specified version of stable representation .
&self
repr_version
ReprVersion