#![doc = include_str!("../README.md")]
mod icons;
pub use icons::*;
mod finder;
pub use finder::get_icon;
#[cfg(feature = "pyo3")]
use pyo3::prelude::*;
#[cfg(feature = "pyo3")]
pub mod py_binding;
#[cfg_attr(feature = "pyo3", pyclass(module = "octicons_pack", get_all, frozen))]
#[derive(Debug, PartialEq, Eq)]
pub struct Icon {
pub svg: &'static str,
pub slug: &'static str,
}
#[cfg(feature = "pyo3")]
#[cfg_attr(feature = "pyo3", pymethods)]
impl Icon {
pub fn __repr__(&self) -> PyResult<String> {
Ok(format!("< Icon object for slug {} >", self.slug))
}
}