Derive Debug on FontGroup and its components

This commit is contained in:
Olaf Buddenhagen 2015-12-09 19:35:14 +01:00
parent 3d078f7c64
commit c5ede5851e
10 changed files with 16 additions and 8 deletions

View file

@ -17,7 +17,7 @@ use string_cache::Atom;
/// The identifier is a PostScript font name. The
/// CTFont object is cached here for use by the
/// paint functions that create CGFont references.
#[derive(Deserialize, Serialize)]
#[derive(Deserialize, Serialize, Debug)]
pub struct FontTemplateData {
/// The `CTFont` object, if present. This is cached here so that we don't have to keep creating
/// `CTFont` instances over and over. It can always be recreated from the `identifier` and/or
@ -64,6 +64,7 @@ impl FontTemplateData {
}
}
#[derive(Debug)]
pub struct CachedCTFont(Mutex<Option<CTFont>>);
impl Deref for CachedCTFont {