[][src]Trait owned_ttf_parser::AsFontRef

pub trait AsFontRef {
    fn as_font(&self) -> &Font<'_>;
}
[]

Used to perform a cheap conversion to a Font reference.

Required methods

fn as_font(&self) -> &Font<'_>[]

Convert to a Font reference.

Implementors

impl AsFontRef for OwnedFont[src][+]

impl<'_> AsFontRef for &'_ OwnedFont[src][+]

impl<'_> AsFontRef for Font<'_>[src][+]

impl<'_, '_> AsFontRef for &'_ Font<'_>[src][+]