Macro lophat::impl_rvd_serialize
source · macro_rules! impl_rvd_serialize { ($struct:ident) => { ... }; }
Expand description
Implements Serialize
on the provided algorithm, for any column representation.
The struct must be generic over the column type and implement Decomposition
.
As a fallback, you may wish to use serialize_algo
to implement Serialize
yourself.
Note: We intentionally do not implement Deserialize
.
Instead, you should deserialize to DecompositionFileFormat
.
§Example usage
ⓘ
use lophat::impl_rvd_serialize;
use lophat::columns::Column;
use lophat::algorithms::Decomposition;
struct MyAlgo<C: Column> { ... }
impl<C:Column> Decomposition<C> for MyAlgo<C> { ... }
impl_rvd_serialize!(MyAlgo);