fn convert_to_surface<'a>(raw: *mut SDL_Surface) -> FontResult<Surface<'a>> {
    if (raw as *mut ()).is_null() {
        Err(FontError::SdlError(get_error()))
    } else {
        Ok(unsafe { Surface::from_ll(raw) })
    }
}
/// Converts the given raw pointer to a surface.
Converts the given raw pointer to a surface.
Converts the given raw pointer to a surface .
fn convert_to_surface<'a>(raw: *mut SDL_Surface) -> FontResult<Surface<'a>> {
    if (raw as *mut ()).is_null() {
        Err(FontError::SdlError(get_error()))
    } else {
        Ok(unsafe { Surface::from_ll(raw) })
    }
}
fn convert_to_surface < ' a > ( raw : * mut SDL_Surface ) -> FontResult < Surface < ' a > > { if ( raw as * mut ( ) ) . is_null ( ) { Err ( FontError :: SdlError ( get_error ( ) ) ) } else { Ok ( unsafe { Surface :: from_ll ( raw ) } ) } }
Converts the given raw pointer to a surface.
Converts the given raw pointer to a surface .
raw
*mut SDL_Surface
raw
*mut SDL_Surface