#![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 = "simple_icons_pack", get_all, frozen)
)]
#[derive(Debug, PartialEq, Eq)]
pub struct Icon {
pub svg: &'static str,
pub slug: &'static str,
pub title: &'static str,
pub hex: &'static str,
pub source: &'static str,
pub guidelines: Option<&'static str>,
pub license: Option<&'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))
}
}