[−][src]Function persy_expimp::import
pub fn import<I>(persy: &Persy, importer: I) -> EIRes<()> where
I: Iterator<Item = Info>,
Import the data to a persy storage from a custom format
Example
use persy::{Persy, Config}; use persy_expimp::{import,Info}; Persy::create("imported.persy")?; let persy = Persy::open("imported.persy", Config::new())?; // Source informations from a custom source let source = Vec::<Info>::new(); import(&persy,source.into_iter())?;