heroicons 0.2.0

Easily include Heroicons SVGs in Rust
Documentation
use crate::{
    Icon, IconName, IconVariant,
    svg::{Svg, ToSvg},
};
use hypertext::{Buffer, Renderable};

mod hypertext_elements;

impl<Name, Variant> Renderable for Icon<'_, Name, Variant>
where
    Name: IconName + Copy,
    Variant: IconVariant + Copy,
    Self: ToSvg,
{
    fn render_to(&self, buffer: &mut Buffer) {
        let icon_svg: Svg = (*self).to_svg();
        let buf_str = buffer.dangerously_get_string();
        icon_svg.render_to(buf_str);
    }
}