Converts a list of `Read` structs into a single `EncodedRead`, joining the encoded strings using `§` as a delimiter. # Example ``` let encoded = EncodedRead::from_reads(vec![read1, read2]); println!("{}", serde_json::to_string(&encoded).unwrap()); ```
(reads: Vec<Read>)
| 147 | /// println!("{}", serde_json::to_string(&encoded).unwrap()); |
| 148 | /// ``` |
| 149 | fn from_reads(reads: Vec<Read>) -> Self { |
| 150 | EncodedRead { |
| 151 | values: reads.iter().map(|r| r.encode()).join("§"), |
| 152 | } |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | #[derive(Debug, PartialEq, Eq, Default)] |
nothing calls this directly
no test coverage detected