aboutsummaryrefslogtreecommitdiff
path: root/src/element/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/element/text.rs')
-rw-r--r--src/element/text.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/element/text.rs b/src/element/text.rs
index 3acaac3..ca813c7 100644
--- a/src/element/text.rs
+++ b/src/element/text.rs
@@ -2,8 +2,8 @@ use std::borrow::Borrow;
use std::i32;
use super::{Drawable, PointCollection};
-use crate::drawing::backend::{BackendCoord, DrawingBackend, DrawingErrorKind};
use crate::style::{FontDesc, FontResult, LayoutBox, TextStyle};
+use plotters_backend::{BackendCoord, DrawingBackend, DrawingErrorKind};
/// A single line text element. This can be owned or borrowed string, dependents on
/// `String` or `str` moved into.
@@ -29,7 +29,7 @@ impl<'a, Coord, T: Borrow<str>> Text<'a, Coord, T> {
}
impl<'b, 'a, Coord: 'a, T: Borrow<str> + 'a> PointCollection<'a, Coord> for &'a Text<'b, Coord, T> {
- type Borrow = &'a Coord;
+ type Point = &'a Coord;
type IntoIter = std::iter::Once<&'a Coord>;
fn point_iter(self) -> Self::IntoIter {
std::iter::once(&self.coord)
@@ -216,7 +216,7 @@ impl<'a, Coord> MultiLineText<'a, Coord, String> {
impl<'b, 'a, Coord: 'a, T: Borrow<str> + 'a> PointCollection<'a, Coord>
for &'a MultiLineText<'b, Coord, T>
{
- type Borrow = &'a Coord;
+ type Point = &'a Coord;
type IntoIter = std::iter::Once<&'a Coord>;
fn point_iter(self) -> Self::IntoIter {
std::iter::once(&self.coord)