pub fn encode_loss(value: &Loss) -> Result<Vec<u8>, Error>
Encode one loss using the same bytes as the snapshot loss section.