glifparser/outline/
reverse.rs

1use super::contour::Reverse;
2use super::Outline;
3use crate::point::PointData;
4
5impl<PD: PointData> Reverse for Outline<PD> {
6    fn to_reversed(&self) -> Outline<PD> {
7        let mut ret = Outline::new();
8
9        for c in self.iter() {
10            let new_c = c.clone().to_reversed();
11            ret.push(new_c);
12        }
13
14        ret
15    }
16}