aboutsummaryrefslogtreecommitdiff
path: root/src/element/points.rs
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-04-12 23:43:24 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-12 23:43:24 +0000
commitb64df24e47441d6ec44a063c665ac39d21cfb141 (patch)
treef5309a0441cebfeb180fa9e396526b41dc0ed911 /src/element/points.rs
parent201b37a7aa6ab96dbcd39df7f0a1072845a55fa0 (diff)
parenteecbedf4bd5479cfae7af7e1038ce8c8580c5840 (diff)
downloadplotters-b64df24e47441d6ec44a063c665ac39d21cfb141.tar.gz
Upgrade rust/crates/plotters to 0.3.0 am: e2d8e8d5a5 am: 844ca977cb am: 69d7d070b7 am: eecbedf4bd
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/plotters/+/1662803 Change-Id: Ib3b4ef6a0fde0948ee8f7cb0d968e94eeaf28e95
Diffstat (limited to 'src/element/points.rs')
-rw-r--r--src/element/points.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/element/points.rs b/src/element/points.rs
index aa07de3..2b5346c 100644
--- a/src/element/points.rs
+++ b/src/element/points.rs
@@ -1,7 +1,7 @@
use super::*;
use super::{Drawable, PointCollection};
-use crate::drawing::backend::{BackendCoord, DrawingBackend, DrawingErrorKind};
use crate::style::{ShapeStyle, SizeDesc};
+use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind};
/// The element that used to describe a point
pub trait PointElement<Coord, Size: SizeDesc> {
@@ -26,7 +26,7 @@ impl<Coord, Size: SizeDesc> Cross<Coord, Size> {
}
impl<'a, Coord: 'a, Size: SizeDesc> PointCollection<'a, Coord> for &'a Cross<Coord, Size> {
- type Borrow = &'a Coord;
+ type Point = &'a Coord;
type IntoIter = std::iter::Once<&'a Coord>;
fn point_iter(self) -> std::iter::Once<&'a Coord> {
std::iter::once(&self.center)
@@ -69,7 +69,7 @@ impl<Coord, Size: SizeDesc> TriangleMarker<Coord, Size> {
}
impl<'a, Coord: 'a, Size: SizeDesc> PointCollection<'a, Coord> for &'a TriangleMarker<Coord, Size> {
- type Borrow = &'a Coord;
+ type Point = &'a Coord;
type IntoIter = std::iter::Once<&'a Coord>;
fn point_iter(self) -> std::iter::Once<&'a Coord> {
std::iter::once(&self.center)