#![deny(missing_debug_implementations, missing_copy_implementations)]
#![warn(missing_docs, rustdoc::missing_crate_level_docs)]
#![doc = include_str!("../readme.md")]
#![doc(html_logo_url = "https://raw.githubusercontent.com/oovm/shape-rs/dev/projects/images/Trapezohedron.svg")]
#![doc(html_favicon_url = "https://raw.githubusercontent.com/oovm/shape-rs/dev/projects/images/Trapezohedron.svg")]
use core::fmt::Write;
mod for_3rd;
mod for_std;
pub trait Latexify {
type Context;
fn fmt<W: Write>(&self, c: &Self::Context, f: &mut W) -> core::fmt::Result;
fn to_latex(&self, config: &Self::Context) -> String {
let mut s = String::new();
Latexify::fmt(self, config, &mut s).unwrap();
s
}
}