Skip to main content

write_all

Function write_all 

Source
pub fn write_all<'a, W: Write, I: IntoIterator<Item = &'a Record>>(
    writer: &mut W,
    records: I,
) -> Result<()>
Expand description

Write an iterator of records, one per line.

Any record whose verify_id() returns false is written anyway — this function is a pure serializer, not a validator. Use Record::verify_id before calling if you want to refuse tampered records.