(&mut self, vertex: LineVertex<'_>)
| 242 | |
| 243 | fn write_position(&mut self, pos: [f32; 2]) { |
| 244 | self.write_f32(pos[0]); |
| 245 | self.write_f32(pos[1]); |
| 246 | } |
| 247 | |
| 248 | fn write_color(&mut self, color: &iced::Color) { |
| 249 | self.write_f32(color.r); |
| 250 | self.write_f32(color.g); |
| 251 | self.write_f32(color.b); |
| 252 | self.write_f32(color.a); |
| 253 | } |
| 254 | |
| 255 | fn write_line_vertex(&mut self, vertex: LineVertex<'_>) { |
| 256 | self.write_position(vertex.start); |
| 257 | self.write_position(vertex.end); |
| 258 | self.write_color(vertex.color); |
| 259 | self.write_u32(vertex.style); |
no test coverage detected