Add a new `Outline::len()` method
This commit is contained in:
parent
e5eee41b48
commit
9d86f663ed
|
@ -238,6 +238,12 @@ impl Outline {
|
||||||
self.contours.iter().all(Contour::is_empty)
|
self.contours.iter().all(Contour::is_empty)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns the number of contours in this outline.
|
||||||
|
#[inline]
|
||||||
|
pub fn len(&self) -> usize {
|
||||||
|
self.contours.len()
|
||||||
|
}
|
||||||
|
|
||||||
/// Appends the contours in another outline to this one.
|
/// Appends the contours in another outline to this one.
|
||||||
pub fn push_outline(&mut self, other: Outline) {
|
pub fn push_outline(&mut self, other: Outline) {
|
||||||
if other.is_empty() {
|
if other.is_empty() {
|
||||||
|
|
Loading…
Reference in New Issue