mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-09 22:57:59 -05:00
doc(versionable): improve proc macro doc with an example
This commit is contained in:
committed by
Nicolas Sarlin
parent
1406924235
commit
075e87495d
@@ -48,10 +48,10 @@ pub trait VersionizeOwned {
|
||||
fn versionize_owned(self) -> Self::VersionedOwned;
|
||||
}
|
||||
|
||||
/// This trait is used as a proxy to be more flexible when deriving Versionize for Vec<T>.
|
||||
/// This trait is used as a proxy to be more flexible when deriving Versionize for `Vec<T>`.
|
||||
///
|
||||
/// This way, we can chose to skip versioning Vec<T> if T is a native types but still versionize in
|
||||
/// a loop if T is a custom type.
|
||||
/// This way, we can chose to skip versioning `Vec<T>` if T is a native types but still versionize
|
||||
/// in a loop if T is a custom type.
|
||||
/// This is used as a workaround for feature(specialization) and to bypass the orphan rule.
|
||||
pub trait VersionizeSlice: Sized {
|
||||
type VersionedSlice<'vers>: Serialize
|
||||
|
||||
Reference in New Issue
Block a user