# Function flechasdb::db::build::proto::serialize_database

source ·

    pub fn serialize_database<'a, T, VS, FS>(
        db: &'a Database<T, VS>,
        fs: &mut FS
    ) -> Result<(), Error>where
        T: Clone,
        VS: VectorSet<T>,
        DatabaseSerialize<'a, T, VS>: Serialize<ProtosDatabase>,
        Partition<T>: Serialize<ProtosPartition>,
        BlockVectorSet<T>: Serialize<ProtosVectorSet>,
        FS: FileSystem,

Expand description

Serializes `Database`.