aboutsummaryrefslogtreecommitdiff
path: root/src/element/composable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/element/composable.rs')
-rw-r--r--src/element/composable.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/element/composable.rs b/src/element/composable.rs
index 95ff380..33b08c9 100644
--- a/src/element/composable.rs
+++ b/src/element/composable.rs
@@ -1,5 +1,5 @@
use super::*;
-use crate::drawing::backend::DrawingBackend;
+use plotters_backend::DrawingBackend;
use std::borrow::Borrow;
use std::iter::{once, Once};
use std::marker::PhantomData;
@@ -36,7 +36,7 @@ where
}
impl<'a, Coord, DB: DrawingBackend> PointCollection<'a, Coord> for &'a EmptyElement<Coord, DB> {
- type Borrow = &'a Coord;
+ type Point = &'a Coord;
type IntoIter = Once<&'a Coord>;
fn point_iter(self) -> Self::IntoIter {
once(&self.coord)
@@ -64,7 +64,7 @@ pub struct BoxedElement<Coord, DB: DrawingBackend, A: Drawable<DB>> {
impl<'b, Coord, DB: DrawingBackend, A: Drawable<DB>> PointCollection<'b, Coord>
for &'b BoxedElement<Coord, DB, A>
{
- type Borrow = &'b Coord;
+ type Point = &'b Coord;
type IntoIter = Once<&'b Coord>;
fn point_iter(self) -> Self::IntoIter {
once(&self.offset)
@@ -132,7 +132,7 @@ where
A: Drawable<DB>,
B: Drawable<DB>,
{
- type Borrow = &'b Coord;
+ type Point = &'b Coord;
type IntoIter = Once<&'b Coord>;
fn point_iter(self) -> Self::IntoIter {
once(&self.offset)