pub fn texture(&mut self, spec: font::Spec<Font::Id, Fg::Id>) -> Result<Rc<Texture<'a>>> {
        self.textures
            .get(&spec)
            .cloned()
            .map_or_else(|| self.cache(spec), Ok)
    }
/// Gets the given font spec as a texture, or loads it if
/// it hasn't yet been loaded.
///
/// # Errors
///
/// Returns an error if we need to load the font but SDL cannot for some
/// reason, or the font is not configured.
Gets the given font spec as a texture, or loads it if
it hasn't yet been loaded.
Gets the given font spec as a texture or loads it if it hasn ' t yet been loaded .
pub fn texture(&mut self, spec: font::Spec<Font::Id, Fg::Id>) -> Result<Rc<Texture<'a>>> {
        self.textures
            .get(&spec)
            .cloned()
            .map_or_else(|| self.cache(spec), Ok)
    }
pub fn texture ( & mut self , spec : font :: Spec < Font :: Id , Fg :: Id > ) -> Result < Rc < Texture < ' a > > > { self . textures . get ( & spec ) . cloned ( ) . map_or_else ( | | self . cache ( spec ) , Ok ) }
Gets the given font spec as a texture, or loads it if
it hasn't yet been loaded.
Gets the given font spec as a texture or loads it if it hasn ' t yet been loaded .
&mut self
spec
font::Spec<Font::Id, Fg::Id>
errors
Returns an error if we need to load the font but SDL cannot for some
reason, or the font is not configured.
Returns an error if we need to load the font but SDL cannot for some reason or the font is not configured .