/external/rust/crates/plotters/src/style/font/ |
D | ttf.rs | 17 type FontResult<T> = Result<T, FontError>; 20 pub enum FontError { enum 26 impl std::fmt::Display for FontError { implementation 29 FontError::LockError => write!(fmt, "Could not lock mutex"), in fmt() 30 FontError::NoSuchFont(family, style) => { in fmt() 33 FontError::FontLoadError(e) => write!(fmt, "Font loading error: {}", e), in fmt() 38 impl std::error::Error for FontError {} implementation 79 || FontError::NoSuchFont(face.as_str().to_owned(), style.as_str().to_owned()); in load_font_data() 104 .map_err(|err| FontError::FontLoadError(Arc::new(err)))? in load_font_data() 106 .map_err(|err| FontError::FontLoadError(Arc::new(err))); in load_font_data() [all …]
|
D | naive.rs | 4 pub struct FontError; struct 6 impl std::fmt::Display for FontError { implementation 13 impl std::error::Error for FontError {} implementation 19 type ErrorType = FontError; 20 fn new(family: FontFamily, style: FontStyle) -> Result<Self, FontError> { in new() argument
|
D | web.rs | 6 pub enum FontError { enum 10 impl std::fmt::Display for FontError { implementation 18 impl std::error::Error for FontError {} implementation 24 type ErrorType = FontError; 25 fn new(family: FontFamily, style: FontStyle) -> Result<Self, FontError> { in new() argument
|
D | font_desc.rs | 10 pub type FontError = <FontDataInternal as FontData>::ErrorType; typedef 13 pub type FontResult<T> = Result<T, FontError>;
|
/external/rust/crates/plotters/src/style/ |
D | text.rs | 2 use super::font::{FontDesc, FontError, FontFamily, FontStyle, FontTransform}; 141 type FontError = FontError; typedef 159 fn layout_box(&self, text: &str) -> Result<((i32, i32), (i32, i32)), Self::FontError> { in layout_box() argument 176 ) -> Result<Result<(), E>, Self::FontError> { in draw() argument
|
D | mod.rs | 17 FontDesc, FontError, FontFamily, FontResult, FontStyle, FontTransform, IntoFont, LayoutBox,
|
/external/rust/crates/plotters-backend/src/ |
D | lib.rs | 85 FontError(Box<dyn Error + Send + Sync + 'static>), enumerator 92 DrawingErrorKind::FontError(e) => write!(fmt, "Font loading error: {}", e), in fmt() 233 .map_err(|e| DrawingErrorKind::FontError(Box::new(e)))?; in draw_text() 259 Err(font_error) => Err(DrawingErrorKind::FontError(Box::new(font_error))), in draw_text() 278 .map_err(|e| DrawingErrorKind::FontError(Box::new(e)))?; in estimate_text_size()
|
D | text.rs | 209 type FontError: Error + Sync + Send + 'static; typedef 236 fn layout_box(&self, text: &str) -> Result<((i32, i32), (i32, i32)), Self::FontError>; in layout_box() argument 243 ) -> Result<Result<(), E>, Self::FontError>; in draw() argument
|
/external/rust/crates/plotters/src/chart/ |
D | series.rs | 201 DrawingAreaErrorKind::BackendError(DrawingErrorKind::FontError(Box::new(e))) in draw() 231 DrawingAreaErrorKind::BackendError(DrawingErrorKind::FontError(Box::new(e))) in draw()
|
/external/rust/crates/plotters-svg/src/ |
D | svg.rs | 411 font.layout_box(text).map_err(DrawingErrorKind::FontError)?; in draw_text()
|
/external/rust/crates/plotters/ |
D | CHANGELOG.md | 124 - `FontError` from rusttype isn't `Sync` and `Send`. We don't have trait bound to ensure this. (Th…
|