pub fn to_string(library: &Library<'_>) -> Result<String>
Convenience function to write a library to a string.